This commit is contained in:
yumoqing 2024-10-10 16:51:24 +08:00
parent b6087ac096
commit 241e8a9cdd

View File

@ -22,7 +22,7 @@ bricks.Signaling = class {
info: info:
connect_opts: connect_opts:
onclose: onclose:
onpeers onlogin:
} }
*/ */
constructor(opts){ constructor(opts){
@ -101,8 +101,8 @@ bricks.Signaling = class {
d = bricks.extend(d, p); d = bricks.extend(d, p);
this.peers[p.id] = d; this.peers[p.id] = d;
}); });
if (this.onpeers){ if (this.onlogin){
this.onpeers(this.peers); this.onlogin(this.peers);
} }
return; return;
} }