bugfix
This commit is contained in:
parent
c53edd9b7b
commit
4d4e217c75
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user