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

    Class ChannelWireStream

    Adds the A11 WireStream lifecycle to a packet-oriented binary channel.

    Each WireMessage is split into bounded packets and may be reassembled out of order or interleaved with other messages. Incoming queues and partial messages are bounded separately so an agent cannot accumulate unbounded state while an application callback is slow.

    Most applications construct WebSocketWireStream, WebRtcWireStream, or InProcessWireStream instead. Use this class directly when adapting a new channel. After exactly one of start or accept, finish normally with halfClose then drainOutgoingMessages; peer input continues until its half-close. An abort, transport failure, or deadline skips that normal drain and ends both directions with a structured status.

    Implements

    Index

    Normalized packet reassembly limits.

    options: Readonly<NormalizedWireStreamOptions>

    Normalized application-message and timing limits.