This commit is contained in:
yumoqing 2024-10-05 21:12:19 +08:00
parent c53edd9b7b
commit 4d4e217c75

View File

@ -33,7 +33,6 @@ bricks.Signaling = class {
login(){
var d = {
type:'login',
info:this.info
}
this.send_data(d);
}
@ -41,11 +40,11 @@ bricks.Signaling = class {
logout(){
var d= {
type:'logout',
info:this.info
}
this.send_data(d);
}
send_data(d){
d.from = this.info;
var s = JSON.stringify(d);
self.socket.send(s);
}