@tikoci/centrs
    Preparing search index...

    Interface ProtocolListenOptions

    Options for incremental native command replies.

    interface ProtocolListenOptions {
        cancelGraceMs?: number;
        onCancelUnacknowledged?: () => void;
        onDone?: (attributes: Record<string, string>) => void;
        onListening?: () => void;
        onReply?: (reply: ProtocolTappedReply) => void;
        signal?: AbortSignal;
    }
    Index
    cancelGraceMs?: number

    How long to wait for RouterOS to acknowledge /cancel after signal aborts before ending the listen locally. Native API defaults to the adapter's timeoutMs, the same bound as any other reply wait.

    onCancelUnacknowledged?: () => void

    Fired when that wait expires without the router's acknowledgement.

    onDone?: (attributes: Record<string, string>) => void

    Attributes carried by the command's terminal !done, not a row frame.

    onListening?: () => void

    Fired once the subscription is on the wire (connection up, listen sentence written) — a real "listening" barrier for callers/tests that must act only after the follow is established, instead of a blind timer.

    onReply?: (reply: ProtocolTappedReply) => void

    Every reply (re, empty, trap, done), called synchronously in wire order as it arrives, before the generator yields it. Concurrent streams on one connection can be ordered against each other only this way; the generators' own interleaving depends on microtask scheduling.

    signal?: AbortSignal

    Abort the listen (sends /cancel); the generator then ends cleanly.