Skip to main content

encode_jsonrpc_sub_receive

Function encode_jsonrpc_sub_receive 

Source
pub fn encode_jsonrpc_sub_receive(
    request_id: &str,
    json_rpc_msg: &str,
) -> Vec<u8> 
Expand description

Encode a host_jsonrpc_subscribe receive message.

Pushes a JSON-RPC message (initial response or notification) to the app for an active subscription. Uses the same request_id from the original JsonRpcSubscribeStart.