1
0
forked from MTSR/mapserver

fix reconnect ws

This commit is contained in:
Thomas Rudin 2019-03-22 18:14:39 +01:00
parent f65aad778b
commit 9d9862f9f9

View File

@ -44,6 +44,6 @@ WebSocketChannel.prototype.connect = function(){
ws.onerror = function(){
//reconnect after some time
setTimeout(() => this.connect(), 1000);
setTimeout(self.connect.bind(self), 1000);
}
};