pub type WsMessageOrResponse = WsMessageOrResponse<SubId>;
Expand description
Either a websocket message or a response
Aliased Type§
pub enum WsMessageOrResponse {
Response(WsResponse<SubId>),
ErrorResponse(WsErrorResponse),
Notification(WsNotification<NotificationInner<String, SubId>>),
}
Variants§
Response(WsResponse<SubId>)
A response to a request
ErrorResponse(WsErrorResponse)
An error response
Notification(WsNotification<NotificationInner<String, SubId>>)
A notification