Trait jsonrpc_pubsub::SubscribeRpcMethod
source · pub trait SubscribeRpcMethod<M: PubSubMetadata>: Send + Sync + 'static {
// Required method
fn call(&self, params: Params, meta: M, subscriber: Subscriber);
}
Expand description
Subscribe handler
Required Methods§
sourcefn call(&self, params: Params, meta: M, subscriber: Subscriber)
fn call(&self, params: Params, meta: M, subscriber: Subscriber)
Called when client is requesting new subscription to be started.