Skip to main content

Module client

Module client 

Source
Expand description

Messages a client sends to a relay.

Per NIP-01, every message is a heterogeneous JSON array tagged by its command ("EVENT", "REQ", "CLOSE", "AUTH", "COUNT"). Custom Serialize/Deserialize impls preserve the wire shape; the public enum layout matches the protocol surface so callers don’t have to know about the magic command strings.

Enums§

ClientMessage
Messages sent from a client to a relay.
ClientMessageError
Errors raised when parsing a ClientMessage.