Type Alias nostr_types::ClientMessage

source ·
pub type ClientMessage = ClientMessageV3;
Expand description

A message from a client to a relay

Aliased Type§

enum ClientMessage {
    Event(Box<EventV3>),
    Req(SubscriptionId, Vec<Filter>),
    Close(SubscriptionId),
    Auth(Box<EventV3>),
}

Variants§

§

Event(Box<EventV3>)

An event

§

Req(SubscriptionId, Vec<Filter>)

A subscription request

§

Close(SubscriptionId)

A request to close a subscription

§

Auth(Box<EventV3>)

Used to send authentication events