Merge pull request #14698 from flynetworks/websocket-client-tlsoptions

[websocket] Added tlsOptions to IClientConfig
This commit is contained in:
Zhengbo Li
2017-02-17 11:06:55 -08:00
committed by GitHub
+10 -1
View File
@@ -1,6 +1,7 @@
// Type definitions for websocket
// Project: https://github.com/theturtle32/WebSocket-Node
// Definitions by: Paul Loyd <https://github.com/loyd>
// Definitions by: Paul Loyd <https://github.com/loyd>,
// Kay Schecker <https://github.com/flynetworks>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
@@ -8,6 +9,7 @@
import events = require('events');
import http = require('http');
import https = require('https');
import net = require('net');
import url = require('url');
@@ -534,6 +536,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 {