Bridges a duplex byte stream carrying a single Connect RPC to a
UniversalHandler from @connectrpc/connect. Use
createConnectRouter(...).handlers to obtain the handlers array.
The wire format read from and written to socket is the bidi-web
envelope protocol: every frame is a 5-byte envelope (1 flag byte, 4-byte
big-endian payload length) followed by the payload, matching
@sudorandom/connect-bidi-web's client transports byte-for-byte.
Bridges a duplex byte stream carrying a single Connect RPC to a UniversalHandler from
@connectrpc/connect. UsecreateConnectRouter(...).handlersto obtain the handlers array.The wire format read from and written to
socketis the bidi-web envelope protocol: every frame is a 5-byte envelope (1 flag byte, 4-byte big-endian payload length) followed by the payload, matching@sudorandom/connect-bidi-web's client transports byte-for-byte.