This commit is contained in:
yumoqing 2024-10-09 15:38:21 +08:00
parent 834993d0d8
commit 8d817a4dfc

View File

@ -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);