mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #14698 from flynetworks/websocket-client-tlsoptions
[websocket] Added tlsOptions to IClientConfig
This commit is contained in:
Vendored
+10
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user