Skip to content

Latest commit

 

History

History
61 lines (31 loc) · 997 Bytes

MESSAGE_TYPES.md

File metadata and controls

61 lines (31 loc) · 997 Bytes

nostr-websocket-utils v0.3.0


nostr-websocket-utils / MESSAGE_TYPES

Variable: MESSAGE_TYPES

const MESSAGE_TYPES: object

Message types as defined in NIP-01 and other NIPs

Type declaration

EVENT

readonly EVENT: "EVENT" = 'EVENT'

REQ

readonly REQ: "REQ" = 'REQ'

CLOSE

readonly CLOSE: "CLOSE" = 'CLOSE'

NOTICE

readonly NOTICE: "NOTICE" = 'NOTICE'

EOSE

readonly EOSE: "EOSE" = 'EOSE'

OK

readonly OK: "OK" = 'OK'

AUTH

readonly AUTH: "AUTH" = 'AUTH'

COUNT

readonly COUNT: "COUNT" = 'COUNT'

PING

readonly PING: "PING" = 'PING'

PONG

readonly PONG: "PONG" = 'PONG'

ERROR

readonly ERROR: "error" = 'error'

Defined in

types/messages.ts:152