mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Missed a layer of indirection.
This commit is contained in:
parent
7b6dc5d11b
commit
2123ba7192
2
gun.js
2
gun.js
@ -2375,7 +2375,7 @@
|
||||
function open(peer, as){
|
||||
if(!peer || !peer.url){ return }
|
||||
var url = peer.url.replace('http', 'ws');
|
||||
var wire = peer.wire = new WebSocket(url, as.wsc.protocols, as.wsc );
|
||||
var wire = peer.wire = new WebSocket(url, as.wsp.wsc.protocols, as.wsp.wsc );
|
||||
wire.onclose = function(){
|
||||
reconnect(peer, as);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user