edgeport - v1.0.6
    Preparing search index...

    Interface ConnectOptions

    Options for connect.

    interface ConnectOptions {
        allowHalfOpen?: boolean;
        connectTimeoutMs?: number;
        hostname: string;
        port: number;
        tls?: "off" | "on" | "starttls";
    }
    Index
    allowHalfOpen?: boolean

    Keep the writable side open after the peer half-closes.

    connectTimeoutMs?: number

    Connect deadline in milliseconds (default 15000); rejects with TimeoutError.

    hostname: string

    Remote host to dial.

    port: number

    Remote TCP port.

    tls?: "off" | "on" | "starttls"

    Transport security mode:

    • 'off' (default): plaintext.
    • 'on': TLS from the first byte (implicit TLS, e.g. SMTPS/IMAPS/POP3S).
    • 'starttls': plaintext that can later be upgraded via CoreSocket.startTls.