From ddf6b2c9d87070330328148031ea6f94abfd7f36 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 15 Apr 2023 19:44:01 -0400 Subject: [PATCH] *add getter for socketOptions --- src/proxy.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 {