Package-level declarations

Types

Link copied to clipboard
data class CommandResult(val eventId: ByteString, val success: Boolean, val message: String?) : RelayMessage

Result of issuing an event to a relay, as per nip-20.

Link copied to clipboard
data class EndOfStoredEvents(val subscriptionId: String) : RelayMessage

Sent by nip-15 compliant relays when the subscription has finished fetching stored events and will subsequently only send real-time events.

Link copied to clipboard
data class EventMessage(val subscriptionId: String, val event: Event) : RelayMessage

Every event provided by the relay is associated with a subscription. This type binds both.

Link copied to clipboard
data class Notice(val message: String) : RelayMessage

Informational notice from the relay to the client

Link copied to clipboard
interface RelayMessage

Messages that are received from relays