Skip to main content

RawWsMessageOrResponse

Type Alias RawWsMessageOrResponse 

Source
pub type RawWsMessageOrResponse = RawWsMessageOrResponse<Arc<SubId>>;
Expand description

Either a websocket message or a response with raw notification payloads

Aliased Type§

pub enum RawWsMessageOrResponse {
    Response(WsResponse<Arc<SubId>>),
    ErrorResponse(WsErrorResponse),
    Notification(Box<WsNotification<RawNotificationInner<Arc<SubId>>>>),
}

Variants§

§

Response(WsResponse<Arc<SubId>>)

A response to a request

§

ErrorResponse(WsErrorResponse)

An error response

§

Notification(Box<WsNotification<RawNotificationInner<Arc<SubId>>>>)

A notification with raw JSON payload