Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
interface TlsOptions
import { type TlsOptions } from "https://deno.land/x/natsws@v1.28.0/src/mod.ts";

TlsOptions that can be specified to a client. Note that the options are typically runtime specific, so some clients won't support them at all. In other cases they will match to the runtime's TLS options.

If no options are specified, but the argument for TlsOptions is an object, the client is requesting to only use connections that are secured by TLS.

Properties

optional
handshakeFirst: boolean

handshakeFirst option requires the server to be configured with handshakeFirst: true.

optional
certFile: string
optional
cert: string
optional
caFile: string
optional
ca: string
optional
keyFile: string
optional
key: string