Enum mpc_websocket::Notification
source · pub enum Notification {
Noop,
Group {
group_id: Uuid,
filter: Option<Vec<usize>>,
response: Response,
},
Session {
group_id: Uuid,
session_id: Uuid,
filter: Option<Vec<usize>>,
response: Response,
},
Relay {
messages: Vec<(usize, Response)>,
},
}
Expand description
Notification sent by the server to multiple connected clients.
Variants§
Noop
Indicates that the response should be ignored and no notification messages should be sent.
This is used when testing a threshold for sending notifications; before a threshold has been reached we want to return a response but not actually send any notifications.
Group
Fields
Sends the response to all clients in the group.
Session
Fields
Sends the response to all clients in the session.
Relay
Relay messages to specific clients.
Used for relaying peer to peer messages.