Fixes and improvements
This commit is contained in:
parent
c08b89d68a
commit
1a3d92c903
8 changed files with 132 additions and 48 deletions
|
|
@ -515,10 +515,12 @@ function applyOpts() {
|
|||
}
|
||||
|
||||
if(USEROPTS.altsocket) {
|
||||
if(socket && socket.disconnect)
|
||||
socket.disconnect();
|
||||
socket = new NotWebsocket();
|
||||
setupCallbacks();
|
||||
if(!socket.nws) {
|
||||
if(socket && socket.disconnect)
|
||||
socket.disconnect();
|
||||
socket = new NotWebsocket();
|
||||
setupCallbacks();
|
||||
}
|
||||
}
|
||||
// Switch from NotWebsocket => Socket.io
|
||||
else if(socket && typeof socket.poll !== "undefined") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue