fix reconnect ws
This commit is contained in:
parent
f65aad778b
commit
9d9862f9f9
@ -44,6 +44,6 @@ WebSocketChannel.prototype.connect = function(){
|
|||||||
|
|
||||||
ws.onerror = function(){
|
ws.onerror = function(){
|
||||||
//reconnect after some time
|
//reconnect after some time
|
||||||
setTimeout(() => this.connect(), 1000);
|
setTimeout(self.connect.bind(self), 1000);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user