mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
no 1006
This commit is contained in:
parent
c8fe8ae00c
commit
bf6c6e5a09
4
gun.js
4
gun.js
@ -1261,9 +1261,9 @@
|
||||
if(!c){ return }
|
||||
if(ws && ws.close instanceof Function){ ws.close() }
|
||||
if(1006 === c.code){ // websockets cannot be used
|
||||
ws = r.ws.peers[opt.base] = false;
|
||||
/*ws = r.ws.peers[opt.base] = false;
|
||||
r.transport(opt, cb);
|
||||
return;
|
||||
return;*/
|
||||
}
|
||||
ws = r.ws.peers[opt.base] = null; // this will make the next request try to reconnect
|
||||
setTimeout(function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user