bugfix
This commit is contained in:
parent
491ffe236e
commit
071497acd3
@ -135,7 +135,7 @@ bricks.Signaling = class {
|
|||||||
var opts = bricks.extend({}, this.connect_options);
|
var opts = bricks.extend({}, this.connect_options);
|
||||||
opts.peer_info = peer;
|
opts.peer_info = peer;
|
||||||
var h = new k(this, session, opts);
|
var h = new k(this, session, opts);
|
||||||
this.add_handler(sessionid, h.recvdata_handler);
|
this.add_handler(sessionid, h.recvdata_handler.bind(h) );
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
login(){
|
login(){
|
||||||
@ -288,7 +288,7 @@ bricks.RTCP2PConnect = class {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async recvdata_handler(data){
|
async recvdata_handler(data){
|
||||||
console.log('recvdata=', data);
|
console.log('recvdata=', data, this.signal_handlers);
|
||||||
var f = this.signal_handlers[data.type];
|
var f = this.signal_handlers[data.type];
|
||||||
if (f) {
|
if (f) {
|
||||||
await f(data);
|
await f(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user