Compare commits

..

2 Commits

2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class Peer extends peer_js_1.default {
} }
async handleChannelOnOpen(m) { async handleChannelOnOpen(m) {
await this._proxy.handleNewPeerChannel(this); await this._proxy.handleNewPeerChannel(this);
this._proxy.emit("peerOpen", this);
} }
} }
exports.default = Peer; exports.default = Peer;

View File

@ -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);
} }
} }