Answer the question
In order to leave comments, you need to log in
How to prevent two identical websocket connections from being opened?
How to prevent two identical websocket connections from being opened? I establish each connection with a GET request in order to check the user's authorization on the site, if there is none, I break it !!! And how to forbid two identical connections?
GET string request goes like this:
window.socket = new WebSocket('wss://site.ru:441?user='+app.BootData.uid+'_'+app.BootData.authKey+'');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question