openSocket options.

interface OpenSocketOptions {
    bind?: BindOptions;
    family?: AddressFamily;
}

Hierarchy (view full)

Properties

Properties

bind?: BindOptions

Bind options, such as local address and port.

family?: AddressFamily

IPv4 or IPv6.

Default Value

IPv4, unless hostname is a literal IPv6 address.