diff --git a/src/proxy.ts b/src/proxy.ts index 39a1fcb..2d6e0ba 100644 --- a/src/proxy.ts +++ b/src/proxy.ts @@ -10,7 +10,6 @@ export interface ProxyOptions extends DataSocketOptions { export default abstract class Proxy { protected _listen: any; - protected _socketOptions: DataSocketOptions; protected _autostart: boolean; constructor({ @@ -42,6 +41,12 @@ export default abstract class Proxy { this.init(); } + private _socketOptions: DataSocketOptions; + + get socketOptions(): DataSocketOptions { + return this._socketOptions; + } + private _swarm: any; get swarm(): any {