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