diff --git a/websocket/index.d.ts b/websocket/index.d.ts index ea8af308d2..69ec206209 100644 --- a/websocket/index.d.ts +++ b/websocket/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for websocket // Project: https://github.com/theturtle32/WebSocket-Node -// Definitions by: Paul Loyd +// Definitions by: Paul Loyd , +// Kay Schecker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -534,6 +535,13 @@ export interface IClientConfig extends IConfig { * @default 8MiB */ maxReceivedMessageSize?: number; + + /** + * Options to pass to https.request if connecting via TLS. + * See Node's HTTPS documentation + * @see https://nodejs.org/api/https.html#https_https_request_options_callback + */ + tlsOptions?: https.RequestOptions; } declare class client extends events.EventEmitter {