Skip to content
This repository was archived by the owner on Jul 31, 2020. It is now read-only.

Commit a9ed387

Browse files
artdude543connor4312
authored andcommitted
feat(client): allow access to the options
1 parent bb8b8c3 commit a9ed387

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/Client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ export class Client extends EventEmitter implements IClient {
122122
this.socket.on('close', (data: any) => this.emit('close', data));
123123
}
124124

125+
/**
126+
* Get the options is use by the socket.
127+
*/
128+
public getOptions() {
129+
return this.socket.getOptions();
130+
}
131+
125132
/**
126133
* Sets the given options on the socket.
127134
*/

src/wire/Socket.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ export class InteractiveSocket extends EventEmitter {
167167
});
168168
}
169169

170+
/**
171+
* Get the options the socket is using.
172+
*/
173+
public getOptions() {
174+
return this.options;
175+
}
176+
170177
/**
171178
* Set the given options.
172179
* Defaults and previous option values will be used if not supplied.

0 commit comments

Comments
 (0)