pub struct RegisterNotificationMessage {
pub method: String,
pub send_back: Sender<Result<(Receiver<JsonValue>, String), Error>>,
}Expand description
RegisterNotification message.
Fields§
§method: StringMethod name this notification handler is attached to
send_back: Sender<Result<(Receiver<JsonValue>, String), Error>>We return a mpsc::Receiver that will receive notifications.
When we get a response from the server about that subscription, we send the result over
this channel.