How not to handle on the second tab websocket message?
There's an app for receiving push messages from the WSS server.
Page scripts process the message, etc.
If you open two or more pages/tabs of the browser, the same message is processed by all pages/tabs.
I tried using localStorage, but a message comes up simultaneously on all the tabs and everything work.
How to solve the problem?