@tikoci/centrs
    Preparing search index...

    Interface BtestControlChannel

    Bidirectional, framed control channel — the btest TCP/2000 stream.

    interface BtestControlChannel {
        remoteAddress?: string;
        close(): void;
        read(): Promise<Uint8Array<ArrayBufferLike> | null>;
        readExact(n: number): Promise<Uint8Array<ArrayBufferLike>>;
        write(bytes: Uint8Array): Promise<void>;
    }
    Index
    remoteAddress?: string

    Peer address label for envelopes/logs, when known.

    • Read the next available bytes (bulk TCP data); null at EOF.

      Returns Promise<Uint8Array<ArrayBufferLike> | null>

    • Read exactly n bytes (handshake + status frames).

      Parameters

      • n: number

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Write bytes, resolving once flushed past backpressure.

      Parameters

      • bytes: Uint8Array

      Returns Promise<void>