qbit-rpc
    Preparing search index...

    Interface ZmqSocketSettings

    What a socket must apply: what ZmqSocketFactory receives, and createZeromqSocket takes.

    interface ZmqSocketSettings {
        handshakeIntervalMs?: number;
        heartbeatIntervalMs?: number;
        heartbeatTimeoutMs?: number;
        heartbeatTtlMs?: number;
        ipv6?: boolean;
        maxMessageSize: number;
        tcpKeepalive?: boolean;
        tcpKeepaliveCount?: number;
        tcpKeepaliveIdleSeconds?: number;
        tcpKeepaliveIntervalSeconds?: number;
    }
    Index
    handshakeIntervalMs?: number

    ZMQ_HANDSHAKE_IVL: drop a connection whose ZMTP handshake has not completed within this many ms. The subscriber always passes it: heartbeatIntervalMs + heartbeatTimeoutMs, or 30,000 without heartbeats.

    heartbeatIntervalMs?: number

    libzmq's ZMQ_HEARTBEAT_IVL: send a ZMTP PING every this many ms; 0 sends none. The subscriber always passes it; left out, libzmq's default (0) stays.

    heartbeatTimeoutMs?: number

    ZMQ_HEARTBEAT_TIMEOUT: drop the connection when nothing arrives within this many ms of a PING. The subscriber always passes it.

    heartbeatTtlMs?: number

    ZMQ_HEARTBEAT_TTL: ask the publisher to drop the connection when nothing arrives from this socket within this many ms; 0 asks nothing. The subscriber always passes it.

    ipv6?: boolean

    Enable IPv6. libzmq cannot reach an IPv6 address without it, and with it resolves a host name to IPv6 first, so localhost would miss a publisher on 127.0.0.1. The subscriber sets it only for an IPv6 address, as qbitd does for its publisher. Default false.

    maxMessageSize: number

    Largest inbound message part, in bytes; libzmq disconnects a peer that sends more.

    tcpKeepalive?: boolean

    ZMQ_TCP_KEEPALIVE: true turns TCP keepalive on, false off. Passed only when set; left out, the operating system's default stays (off on Linux).

    tcpKeepaliveCount?: number

    ZMQ_TCP_KEEPALIVE_CNT. Passed only when set.

    tcpKeepaliveIdleSeconds?: number

    ZMQ_TCP_KEEPALIVE_IDLE, in seconds. Passed only when set.

    tcpKeepaliveIntervalSeconds?: number

    ZMQ_TCP_KEEPALIVE_INTVL, in seconds. Passed only when set.