Skip to content

ConnectionOptions

[<Interface>]
type ConnectionOptions =
    abstract member checkServerIdentity: Func<string,PeerCertificate,exn option> option with get, set
    abstract member host: string option with get, set
    abstract member lookup: LookupFunction option with get, set
    abstract member minDHSize: float option with get, set
    abstract member path: string option with get, set
    abstract member port: float option with get, set
    abstract member pskCallback: (string option -> PSKCallbackNegotation option) option with get, set
    abstract member servername: string option with get, set
    abstract member session: Buffer<U2<ArrayBuffer,SharedArrayBuffer>> option with get, set
    abstract member socket: Duplex option with get, set
    abstract member timeout: float option with get, set
AssemblyXantham.Fable.Node
ImplementsCommonConnectionOptions, SecureContextOptions

Properties

abstract member checkServerIdentity: Func<string,PeerCertificate,exn option> option with get, set
abstract member host: string option with get, set
abstract member lookup: LookupFunction option with get, set
abstract member minDHSize: float option with get, set
abstract member path: string option with get, set
abstract member port: float option with get, set
abstract member pskCallback: (string option -> PSKCallbackNegotation option) option with get, set

When 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.

Parameter
hintmessage sent from the server to help client decide which identity to use during negotiation. Always null if TLS 1.3 is used.

Returns. Return null to stop the negotiation process. psk must be compatible with the selected cipher's digest. identity must use UTF-8 encoding.

abstract member servername: string option with get, set
abstract member session: Buffer<U2<ArrayBuffer,SharedArrayBuffer>> option with get, set
abstract member socket: Duplex option with get, set
abstract member timeout: float option with get, set