nostr-websocket-utils / NostrWSClientEvents
Defined in: types/index.ts:110
Events emitted by the NostrWSClient
connect: () =>
void
Defined in: types/index.ts:114
Emitted when the client connects to the relay
void
disconnect: () =>
void
Defined in: types/index.ts:119
Emitted when the client disconnects from the relay
void
reconnect: () =>
void
Defined in: types/index.ts:124
Emitted when the client reconnects to the relay
void
message: (
message) =>Promise<void>
Defined in: types/index.ts:130
Emitted when a message is received from the relay
The received message
Promise<void>
error: (
error) =>void
Defined in: types/index.ts:136
Emitted when an error occurs
Error
The error that occurred
void
close: () =>
void
Defined in: types/index.ts:137
void
optionalstateChange: (state) =>void
Defined in: types/index.ts:138
void
optionalheartbeat: () =>void
Defined in: types/index.ts:139
void