Function clientOutputTransformStream

  • This constructs a transformation stream that converts any error messages into rpcErrors. It also refreshes a timer each time a message is processed if one is provided.

    Type Parameters

    Parameters

    • clientMetadata: JSONValue

      Metadata that is attached to an error when one is created.

    • toError: ToError
    • Optional timer: Timer<void>

      Timer that gets refreshed each time a message is provided.

    Returns TransformStream<JSONRPCResponse<O>, O>

Generated using TypeDoc