From 5a59f00053965a08777f874b4a8205f87bff863b Mon Sep 17 00:00:00 2001 From: sclausen Date: Wed, 11 Jul 2018 20:40:51 +0200 Subject: [PATCH] Removed ClientOptions which are invalid for browsers. --- src/mqtt-types/lib/client-options.d.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/mqtt-types/lib/client-options.d.ts b/src/mqtt-types/lib/client-options.d.ts index 0d9b6c1..501eebc 100644 --- a/src/mqtt-types/lib/client-options.d.ts +++ b/src/mqtt-types/lib/client-options.d.ts @@ -7,7 +7,7 @@ export interface IClientOptions extends ISecureClientOptions { host?: string // host does NOT include port hostname?: string path?: string - protocol?: 'wss' | 'ws' | 'mqtt' | 'mqtts' | 'tcp' | 'ssl' | 'wx' | 'wxs' + protocol?: 'wss' | 'ws' wsOptions?: { [x: string]: any @@ -90,18 +90,6 @@ export interface IClientOptions extends ISecureClientOptions { transformWsUrl?: (url: string, options: IClientOptions, client: MqttClient) => string } export interface ISecureClientOptions { - /** - * optional private keys in PEM format - */ - key?: string | string[] | Buffer | Buffer[] | Object[] - /** - * optional cert chains in PEM format - */ - cert?: string | string[] | Buffer | Buffer[] - /** - * Optionally override the trusted CA certificates in PEM format - */ - ca?: string | string[] | Buffer | Buffer[] rejectUnauthorized?: boolean } export interface IClientPublishOptions {