I am using angular-websocket to open a WebSocket, The application is waiting for a message and then displays a web notification.
I noticed that when there is more than 1 tab open there are many connections and then every tab will receive a message and notifications will be displayed 1 X TABS_NUM
when it should be displayed once.
I think that to make it work properly I need to open 1 WebSocket for the whole app.
Any ideas? What should I do in that case?