Skip to content

Commit

Permalink
Removed ClientOptions which are invalid for browsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
sclausen committed Jul 11, 2018
1 parent 3bd2f71 commit 5a59f00
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/mqtt-types/lib/client-options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5a59f00

Please sign in to comment.