Compare commits

..

No commits in common. "422c11b9b8dcdc402a32a29047cd374f4ca69a8b" and "f8b8633287c45425ba17de7feb3e8f05d876e145" have entirely different histories.

4 changed files with 6 additions and 12 deletions

View File

@ -64,9 +64,6 @@ class MultiSocketProxy extends proxy_js_1.default {
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;
} }

6
dist/proxy.d.ts vendored
View File

@ -6,9 +6,9 @@ export interface ProxyOptions extends DataSocketOptions {
autostart?: boolean; autostart?: boolean;
} }
export default abstract class Proxy { export default abstract class Proxy {
protected _listen: any; private _listen;
protected _socketOptions: DataSocketOptions; private _socketOptions;
protected _autostart: boolean; private _autostart;
constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, onchannel, listen, autostart, emulateWebsocket, createDefaultMessage, }: ProxyOptions); constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, onchannel, listen, autostart, emulateWebsocket, createDefaultMessage, }: ProxyOptions);
private _swarm; private _swarm;
get swarm(): any; get swarm(): any;

View File

@ -80,9 +80,6 @@ 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 {

View File

@ -9,9 +9,9 @@ export interface ProxyOptions extends DataSocketOptions {
} }
export default abstract class Proxy { export default abstract class Proxy {
protected _listen: any; private _listen: any;
protected _socketOptions: DataSocketOptions; private _socketOptions: DataSocketOptions;
protected _autostart: boolean; private _autostart: boolean;
constructor({ constructor({
swarm, swarm,