mirror of
https://github.com/amark/gun.git
synced 2025-06-07 14:46:44 +00:00
'peer' should be 'this'
This commit is contained in:
parent
823950d87d
commit
dfda990ec2
2
gun.js
2
gun.js
@ -2375,7 +2375,7 @@
|
|||||||
function open(peer, as){
|
function open(peer, as){
|
||||||
if(!peer || !peer.url){ return }
|
if(!peer || !peer.url){ return }
|
||||||
var url = peer.url.replace('http', 'ws');
|
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(){
|
wire.onclose = function(){
|
||||||
reconnect(peer, as);
|
reconnect(peer, as);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user