Compare commits
No commits in common. "4b1b828c6997845c4a5552fcf9b4352395706128" and "422c11b9b8dcdc402a32a29047cd374f4ca69a8b" have entirely different histories.
4b1b828c69
...
422c11b9b8
|
@ -7,10 +7,9 @@ export interface ProxyOptions extends DataSocketOptions {
|
||||||
}
|
}
|
||||||
export default abstract class Proxy {
|
export default abstract class Proxy {
|
||||||
protected _listen: any;
|
protected _listen: any;
|
||||||
|
protected _socketOptions: DataSocketOptions;
|
||||||
protected _autostart: boolean;
|
protected _autostart: boolean;
|
||||||
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);
|
||||||
protected _socketOptions: DataSocketOptions;
|
|
||||||
get socketOptions(): DataSocketOptions;
|
|
||||||
private _swarm;
|
private _swarm;
|
||||||
get swarm(): any;
|
get swarm(): any;
|
||||||
private _protocol;
|
private _protocol;
|
||||||
|
|
|
@ -7,6 +7,7 @@ const protomux_1 = __importDefault(require("protomux"));
|
||||||
const peer_js_1 = __importDefault(require("./peer.js"));
|
const peer_js_1 = __importDefault(require("./peer.js"));
|
||||||
class Proxy {
|
class Proxy {
|
||||||
_listen;
|
_listen;
|
||||||
|
_socketOptions;
|
||||||
_autostart;
|
_autostart;
|
||||||
constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, onchannel, listen = false, autostart = false, emulateWebsocket = false, createDefaultMessage = true, }) {
|
constructor({ swarm, protocol, onopen, onreceive, onsend, onclose, onchannel, listen = false, autostart = false, emulateWebsocket = false, createDefaultMessage = true, }) {
|
||||||
this._swarm = swarm;
|
this._swarm = swarm;
|
||||||
|
@ -24,10 +25,6 @@ class Proxy {
|
||||||
};
|
};
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
_socketOptions;
|
|
||||||
get socketOptions() {
|
|
||||||
return this._socketOptions;
|
|
||||||
}
|
|
||||||
_swarm;
|
_swarm;
|
||||||
get swarm() {
|
get swarm() {
|
||||||
return this._swarm;
|
return this._swarm;
|
||||||
|
|
|
@ -10,6 +10,7 @@ export interface ProxyOptions extends DataSocketOptions {
|
||||||
|
|
||||||
export default abstract class Proxy {
|
export default abstract class Proxy {
|
||||||
protected _listen: any;
|
protected _listen: any;
|
||||||
|
protected _socketOptions: DataSocketOptions;
|
||||||
protected _autostart: boolean;
|
protected _autostart: boolean;
|
||||||
|
|
||||||
constructor({
|
constructor({
|
||||||
|
@ -41,12 +42,6 @@ export default abstract class Proxy {
|
||||||
this.init();
|
this.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected _socketOptions: DataSocketOptions;
|
|
||||||
|
|
||||||
get socketOptions(): DataSocketOptions {
|
|
||||||
return this._socketOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
private _swarm: any;
|
private _swarm: any;
|
||||||
|
|
||||||
get swarm(): any {
|
get swarm(): any {
|
||||||
|
|
Loading…
Reference in New Issue