mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
'this' should be 'as'
but I think 'this' is also 'as'... in that case...
This commit is contained in:
parent
dfda990ec2
commit
7b6dc5d11b
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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user