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

Commit

Permalink
feat(client): allow access to the options
Browse files Browse the repository at this point in the history
  • Loading branch information
artdude543 authored and connor4312 committed Dec 23, 2018
1 parent bb8b8c3 commit a9ed387
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ export class Client extends EventEmitter implements IClient {
this.socket.on('close', (data: any) => this.emit('close', data));
}

/**
* Get the options is use by the socket.
*/
public getOptions() {
return this.socket.getOptions();
}

/**
* Sets the given options on the socket.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/wire/Socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ export class InteractiveSocket extends EventEmitter {
});
}

/**
* Get the options the socket is using.
*/
public getOptions() {
return this.options;
}

/**
* Set the given options.
* Defaults and previous option values will be used if not supplied.
Expand Down

0 comments on commit a9ed387

Please sign in to comment.