bigfix
This commit is contained in:
parent
483b2e8e43
commit
fcf2eb982e
@ -20,7 +20,6 @@ bricks.Signaling = class {
|
||||
{
|
||||
signaling_url:
|
||||
info:
|
||||
multiple:false
|
||||
connect_opts:
|
||||
}
|
||||
*/
|
||||
@ -80,6 +79,7 @@ bricks.Signaling = class {
|
||||
if (data.type == 'login'){
|
||||
this.peers[data.msgfrom.id] = data.msgfrom;
|
||||
return;
|
||||
}
|
||||
if (data.type == 'logout'){
|
||||
var peers = {};
|
||||
Object.keys(this.peers).forEach(k =>{
|
||||
@ -294,20 +294,20 @@ bricks.RTCP2PConnect = class {
|
||||
|
||||
async def datachannel_message(peer, msg){
|
||||
var dc = this.peers[peer.id].dc;
|
||||
if (this.on_dc_messaage){
|
||||
await this.on_dc_message(dc, msg);
|
||||
if (this.opts.on_dc_messaage){
|
||||
await this.opts.on_dc_message(dc, msg);
|
||||
}
|
||||
}
|
||||
async def datachannel_open(peer){
|
||||
var dc = this.peers[peer.id].dc
|
||||
if (this.on_dc_open){
|
||||
await this.on_dc_open(dc);
|
||||
if (this.opts.on_dc_open){
|
||||
await this.opts.on_dc_open(dc);
|
||||
}
|
||||
}
|
||||
async def datachannel_close(peer){
|
||||
var dc = this.peers[peer.id].dc
|
||||
if (this.on_dc_close){
|
||||
await this.on_dc_close(dc);
|
||||
if (this.opts.on_dc_close){
|
||||
await this.opts.on_dc_close(dc);
|
||||
}
|
||||
}
|
||||
async createPeerConnection(peer){
|
||||
|
Loading…
Reference in New Issue
Block a user