jsonrpc_pubsub

Function new_subscription

Source
pub fn new_subscription<M, F, G>(
    notification: &str,
    subscribe: F,
    unsubscribe: G,
) -> (Subscribe<F, G>, Unsubscribe<G>)
Expand description

Creates new subscribe and unsubscribe RPC methods