A11 TypeScript API - v0.2.1
    Preparing search index...

    Interface BinaryChannel

    Transport-adapter seam shared by WebSocket, WebRTC, and in-process streams.

    Implement this interface when bringing another message-capable binary transport to A11. ChannelWireStream supplies byte packetization, bounded out-of-order reassembly, A11 half-close/abort messages, deadlines, and callback ordering. The adapter only owns opening, packet I/O, backpressure observation, and physical closure.

    interface BinaryChannel {
        bufferedAmount(): StatusOr<number>;
        close(): Status;
        getImpl(): unknown;
        isOpen(): boolean;
        open(): Promise<Status>;
        resetCallbacks(): Status;
        send(packet: Uint8Array): Status;
        setCallbacks(callbacks: BinaryChannelCallbacks): Status;
        waitForBufferedAmountLow(): Promise<Status>;
    }
    Index