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