I have a private websocket, this websocket brings me information about the user like balance, notification and other things. all application needs to use this websocket. I have a component where I connected in this websocket and i created an emitter to broadcast when a new message is received. example: websocket component receive message and emitter a event to component x.
Is this the best way to implement this?
I`m using angular 6 to build this application.