*override callbacks
This commit is contained in:
parent
d63fa22d00
commit
b2b041c3a1
|
@ -80,6 +80,9 @@ export default class MultiSocketProxy extends Proxy {
|
|||
createDefaultMessage: false,
|
||||
...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) {
|
||||
this.socketClass = options.socketClass;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue