pub trait PubSub: Sized + Send + Sync + 'static {
    type Metadata: PubSubMetadata;
    fn parity_subscribe(
        &self,
        _: Self::Metadata,
        _: Subscriber<Value>,
        _: String,
        _: Option<Params>
    );
fn parity_unsubscribe(
        &self,
        _: Option<Self::Metadata>,
        _: SubscriptionId
    ) -> Result<bool>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }
Expand description

Parity-specific PUB-SUB rpc interface.

Associated Types

Pub/Sub Metadata

Required methods

Subscribe to changes of any RPC method in Parity.

Unsubscribe from existing Parity subscription.

Provided methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors