parseHeadStream<T>(messageParser, bufferByteLimit?): TransformStream<Uint8Array, T | Uint8Array>
This function is a factory to create a TransformStream that will
transform a Uint8Array stream to a JSONRPC message stream.
The parsed messages will be validated with the provided messageParser, this
also infers the type of the stream output.
This function is a factory to create a TransformStream that will transform a
Uint8Array
stream to a JSONRPC message stream. The parsed messages will be validated with the provided messageParser, this also infers the type of the stream output.