A minimal abstraction of a full-duplex byte-stream connection, such as a WebSocket adapted to a byte stream, or a WebTransport bidirectional stream. Each DuplexByteStream carries exactly one RPC.
Optional
Close the underlying connection. Called once the RPC has finished and the response has been fully written.
Readonly
A minimal abstraction of a full-duplex byte-stream connection, such as a WebSocket adapted to a byte stream, or a WebTransport bidirectional stream. Each DuplexByteStream carries exactly one RPC.