Module: Nostr::RelayMessageType

Defined in:
lib/nostr/relay_message_type.rb

Overview

Clients can send 4 types of messages, which must be JSON arrays

Constant Summary collapse

EOSE =

Returns Used to notify clients all stored events have been sent.

Returns:

  • (String)

    Used to notify clients all stored events have been sent

'EOSE'
EVENT =

Returns Used to send events requested to clients.

Returns:

  • (String)

    Used to send events requested to clients

'EVENT'
NOTICE =

Returns Used to send human-readable messages to clients.

Returns:

  • (String)

    Used to send human-readable messages to clients

'NOTICE'
OK =

Returns Used to notify clients if an EVENT was successful.

Returns:

  • (String)

    Used to notify clients if an EVENT was successful

'OK'