bugfix
This commit is contained in:
parent
834993d0d8
commit
8d817a4dfc
@ -42,13 +42,12 @@ bricks.Signaling = class {
|
||||
this.socket.onerror = this.reconnect.bind(this);
|
||||
}
|
||||
reconnect(){
|
||||
try {
|
||||
this.socket.close();
|
||||
} catch(e){
|
||||
console.log('error,', e);
|
||||
}
|
||||
this.init_websocket();
|
||||
};
|
||||
try {
|
||||
this.socket.close();
|
||||
} catch(e){
|
||||
console.log('error,', e);
|
||||
}
|
||||
this.init_websocket();
|
||||
}
|
||||
async signaling_recvdata(event){
|
||||
var datapkg = JSON.parse(event.data);
|
||||
|
Loading…
Reference in New Issue
Block a user