* Add event emitter for when peer connection is established.
This commit is contained in:
parent
b3d6fd4668
commit
d30528caa0
|
@ -16,5 +16,6 @@ export default class Peer extends BasePeer {
|
||||||
|
|
||||||
protected async handleChannelOnOpen(m: any): Promise<void> {
|
protected async handleChannelOnOpen(m: any): Promise<void> {
|
||||||
await this._proxy.handleNewPeerChannel(this);
|
await this._proxy.handleNewPeerChannel(this);
|
||||||
|
this._proxy.emit("peerOpen", this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue