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