mirror of
https://github.com/amark/gun.git
synced 2026-03-22 16:13:47 +00:00
'this' should be 'as'
but I think 'this' is also 'as'... in that case...
This commit is contained in:
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, this.wsc.protocols, this.wsc );
|
||||
var wire = peer.wire = new WebSocket(url, as.wsc.protocols, as.wsc );
|
||||
wire.onclose = function(){
|
||||
reconnect(peer, as);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user