nostr-websocket-utils v0.3.0
nostr-websocket-utils / NostrWSLogger
Interface: NostrWSLogger
Extended logger interface with WebSocket-specific methods
Extends
Methods
wsConnect()
wsConnect(context
): void
Log WebSocket connection event
Parameters
context
WebSocketLogContext
Returns
void
Defined in
types/logger.ts:27
wsDisconnect()
wsDisconnect(context
): void
Log WebSocket disconnection event
Parameters
context
WebSocketLogContext
Returns
void
Defined in
types/logger.ts:32
wsMessage()
wsMessage(context
): void
Log WebSocket message event
Parameters
context
WebSocketLogContext
Returns
void
Defined in
types/logger.ts:37
wsError()
wsError(error
, context
): void
Log WebSocket error event
Parameters
error
Error
context
WebSocketLogContext
Returns
void
Defined in
types/logger.ts:42
wsMetrics()
wsMetrics(metrics
, context
): void
Log WebSocket metrics
Parameters
metrics
Record
<string
, unknown
>
context
WebSocketLogContext
Returns
void
Defined in
types/logger.ts:47