bugfix
This commit is contained in:
parent
8d817a4dfc
commit
804d52792a
@ -38,10 +38,12 @@ bricks.Signaling = class {
|
||||
this.socket = new WebSocket(this.signaling_url);
|
||||
this.socket.onmessage = this.signaling_recvdata.bind(this);
|
||||
this.socket.onopen = this.login.bind(this);
|
||||
this.socket.onclose = this.init_websocket.bind(this);
|
||||
this.socket.onclose = this.reconnect.bind(this);
|
||||
this.socket.onerror = this.reconnect.bind(this);
|
||||
}
|
||||
reconnect(){
|
||||
console.log('eror happened');
|
||||
return;
|
||||
try {
|
||||
this.socket.close();
|
||||
} catch(e){
|
||||
|
Loading…
Reference in New Issue
Block a user