*override callbacks

This commit is contained in:
Derrick Hammer 2023-04-15 19:34:45 -04:00
parent d63fa22d00
commit b2b041c3a1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ export default class MultiSocketProxy extends Proxy {
createDefaultMessage: false, createDefaultMessage: false,
...options, ...options,
}); });
this._socketOptions.onchannel = this.handleNewPeerChannel.bind(this);
this._socketOptions.onclose = this.handleClosePeer.bind(this);
this._socketOptions.onopen = this.handlePeer.bind(this);
if (options.socketClass) { if (options.socketClass) {
this.socketClass = options.socketClass; this.socketClass = options.socketClass;
} else { } else {