mirror of
https://github.com/amark/gun.git
synced 2025-07-09 22:32: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(!c){ return }
|
||||||
if(ws && ws.close instanceof Function){ ws.close() }
|
if(ws && ws.close instanceof Function){ ws.close() }
|
||||||
if(1006 === c.code){ // websockets cannot be used
|
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);
|
r.transport(opt, cb);
|
||||||
return;
|
return;*/
|
||||||
}
|
}
|
||||||
ws = r.ws.peers[opt.base] = null; // this will make the next request try to reconnect
|
ws = r.ws.peers[opt.base] = null; // this will make the next request try to reconnect
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user