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