Module: Nostr::ClientMessageType

Defined in:
lib/nostr/client_message_type.rb

Overview

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

Constant Summary collapse

EVENT =

Returns Used to publish events.

Returns:

  • (String)

    Used to publish events

'EVENT'
REQ =

Returns Used to request events and subscribe to new updates.

Returns:

  • (String)

    Used to request events and subscribe to new updates

'REQ'
CLOSE =

Returns Used to stop previous subscriptions.

Returns:

  • (String)

    Used to stop previous subscriptions

'CLOSE'