pub trait DuplexTransport: Transport {
    type NotificationStream: Stream<Item = Value>;

    fn subscribe(&self, id: SubscriptionId) -> Result<Self::NotificationStream>;
    fn unsubscribe(&self, id: SubscriptionId) -> Result<()>;
}
Expand description

A transport implementation supporting pub sub subscriptions.

Required Associated Types§

The type of stream this transport returns

Required Methods§

Add a subscription to this transport

Remove a subscription from this transport

Implementors§