interface ConnectionOptions
Properties Jump to heading
optional
Jump to headinghost: string | undefinedoptional
Jump to headingport: number | undefinedoptional
Jump to headingpath: string | undefinedoptional
Jump to headingsocket: stream.Duplex | undefinedoptional
Jump to headingcheckServerIdentity: checkServerIdentity | undefinedoptional
Jump to headingservername: string | undefinedoptional
Jump to headingsession: Buffer | undefinedoptional
Jump to headingminDHSize: number | undefinedoptional
Jump to headinglookup: net.LookupFunction | undefinedoptional
Jump to headingtimeout: number | undefinedMethods Jump to heading
optional
Jump to headingpskCallback(hint: string | null): PSKCallbackNegotation | nullWhen negotiating TLS-PSK (pre-shared keys), this function is called
with optional identity hint provided by the server or null
in case of TLS 1.3 where hint was removed.
It will be necessary to provide a custom tls.checkServerIdentity()
for the connection as the default one will try to check hostname/IP
of the server against the certificate but that's not applicable for PSK
because there won't be a certificate present.
More information can be found in the RFC 4279.