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