Skip to content

Commit 06f2fd2

Browse files
authored
feat: add support for ALPN TLS extension (mqttjs#1332)
* feat: add support for tls connection with alpn * style: remove trailing comma from ALPNProtocols
1 parent 8de9394 commit 06f2fd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

types/lib/client-options.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ export interface ISecureClientOptions {
131131
*/
132132
ca?: string | string[] | Buffer | Buffer[]
133133
rejectUnauthorized?: boolean
134+
/**
135+
* optional alpn's
136+
*/
137+
ALPNProtocols?: string[] | Buffer[] | Uint8Array[] | Buffer | Uint8Array
134138
}
135139
export interface IClientPublishOptions {
136140
/**

0 commit comments

Comments
 (0)