I created a service SocketService, basically it initializes the socket to let the app listen on the port. This service also interacts with some components.
/
Also see APP_INITIALIZER, which is described as;
A function that will be executed when an application is initialized.