Expand description
Publish-Subscribe extension for JSON-RPC
Structs§
- PubSub
Handler - Publish-Subscribe extension of
IoHandler. - Session
- RPC client session Keeps track of active subscriptions and unsubscribes from them upon dropping.
- Sink
- A handle to send notifications directly to subscribed client.
- Subscriber
- Represents a subscribing client. Subscription handlers can either reject this subscription request or assign an unique id.
Enums§
- Subscription
Id - Unique subscription id. NOTE Assigning same id to different requests will cause the previous request to be unsubscribed.
Traits§
- PubSub
Metadata - Metadata extension for pub-sub method handling.
- Subscribe
RpcMethod - Subscribe handler
- Unsubscribe
RpcMethod - Unsubscribe handler
Functions§
- new_
subscription - Creates new subscribe and unsubscribe RPC methods
Type Aliases§
- Sink
Result - Subscription send result.
- Transport
Error - Raw transport error.