OptionalcredsFull contents of a NATS .creds file (user JWT + nkey seed) for JWT auth.
Remote NATS host.
OptionaljwtOptionalnameClient name advertised in CONNECT; defaults to edgeport.
OptionalnkeyBase32 seed string (S...) for nkey auth; signs the server nonce.
OptionalpasswordPassword for user/password auth.
OptionalportRemote port; defaults to 4222.
OptionaltimeoutRead deadline in milliseconds for the connect handshake.
OptionaltlsTransport security:
'off': plaintext.'implicit': TLS from the first byte.'starttls': plaintext, upgraded to TLS right after the server INFO.Defaults to 'starttls' when the server advertises tls_required, otherwise 'off'.
OptionaltokenBearer token auth (auth_token).
OptionalusernameUsername for user/password auth.
Options for connect.
Since
1.0.0