diff --git a/gun.js b/gun.js index cf6d2aa2..9a810569 100644 --- a/gun.js +++ b/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, peer.wsc.protocols, peer.wsc ); + var wire = peer.wire = new WebSocket(url, this.wsc.protocols, this.wsc ); wire.onclose = function(){ reconnect(peer, as); };