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.
Uint8Array
Validates the JSONRPC messages, so you can select for a specific type of message
sets the number of bytes buffered before throwing an error. This is used to avoid infinitely buffering the input.
Generated using TypeDoc
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.