connect-bidi-web
    Preparing search index...
    • Bridges a multiplexed bidi connection (a WebSocket) to UniversalHandlers from @connectrpc/connect. Use createConnectRouter(...).handlers to obtain the handlers array.

      Every message on the wire is a 4-byte big-endian stream ID followed by one Connect envelope, matching @sudorandom/connect-bidi-web's client transports byte-for-byte. A headers envelope (flag 0x06) with an unknown stream ID starts a new RPC; a reset envelope (flag 0x07) cancels an in-flight one; frames for finished streams are dropped. Any number of RPCs run concurrently on one connection.

      The returned promise settles once the connection's read side has ended and every RPC started on it has finished.

      Parameters

      Returns Promise<void>