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