nostr-websocket-utils / NostrWSServerEvents
Defined in: types/index.ts:145
Events emitted by the NostrWSServer
connection: (
client) =>void
Defined in: types/index.ts:150
Emitted when a client connects
The connected client
void
message: (
message,client) =>void
Defined in: types/index.ts:157
Emitted when a message is received from a client
The received message
The client that sent the message
void
error: (
error) =>void
Defined in: types/index.ts:163
Emitted when an error occurs
Error
The error that occurred
void