nostr-websocket-utils

nostr-websocket-utils v0.3.0


nostr-websocket-utils / createCommandNoticeMessage

Function: createCommandNoticeMessage()

createCommandNoticeMessage(code, message, details?): NostrWSMessage

Creates a NOTICE message

Parameters

code

CommandStatus

message

string

details?

Record<string, unknown>

Returns

NostrWSMessage

Defined in

nips/nip-20.ts:130