bugfix
This commit is contained in:
parent
1d908d1419
commit
dfc79a1057
@ -73,7 +73,7 @@ bricks.Signaling = class {
|
||||
this.handlers[key] = handler;
|
||||
}
|
||||
add_sessionhandler(sessiontype, handler){
|
||||
self.sessionhandlers[sessiontype] = handler;
|
||||
this.sessionhandlers[sessiontype] = handler;
|
||||
}
|
||||
async recvdata_handler(data){
|
||||
if (data.type == 'login'){
|
||||
@ -126,10 +126,10 @@ bricks.Signaling = class {
|
||||
send_data(d){
|
||||
d.msgfrom = this.info;
|
||||
var s = JSON.stringify(d);
|
||||
self.socket.send(s);
|
||||
this.socket.send(s);
|
||||
}
|
||||
socket_send(s){
|
||||
self.socket.send(s);
|
||||
this.socket.send(s);
|
||||
}
|
||||
}
|
||||
|
||||
@ -218,7 +218,7 @@ bricks.RTCP2PConnect = class {
|
||||
await pc.addIceCandidate(candidate);
|
||||
}
|
||||
async h_sessionquit(data){
|
||||
var pc = self.peers[data.msgfrom.id].pc;
|
||||
var pc = this.peers[data.msgfrom.id].pc;
|
||||
pc.close();
|
||||
}
|
||||
async send_offer(peer){
|
||||
|
Loading…
Reference in New Issue
Block a user