proper reconnect on ws error
This commit is contained in:
parent
7d5d69684f
commit
ad86d88cc6
@ -44,6 +44,6 @@ WebSocketChannel.prototype.connect = function(){
|
||||
|
||||
ws.onerror = function(){
|
||||
//reconnect after some time
|
||||
setTimeout(connect, 1000);
|
||||
setTimeout(() => this.connect(), 1000);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user