Expand description
Websocket types and functions for the CDK.
This module extends the cashu
crate with types and functions for the CDK, using the correct
expected ID types.
Functions§
- notification_
to_ ws_ message - Converts a notification to a websocket message that can be sent to clients
- notification_
uuid_ to_ notification_ string - Converts a notification with UUID identifiers to a notification with string identifiers
Type Aliases§
- Notification
Inner - Inner content of a notification with generic payload type
- WsError
Body - Error body for websocket responses
- WsMessage
OrResponse - Either a websocket message or a response
- WsMethod
Request - Method-specific websocket request
- WsNotification
- Notification message sent over websocket
- WsRequest
- Generic websocket request
- WsResponse
- Generic websocket response
- WsResponse
Result - Result part of a websocket response
- WsSubscribe
Response - Response to a subscription request
- WsUnsubscribe
Request - Request to unsubscribe from a websocket subscription
- WsUnsubscribe
Response - Response to an unsubscribe request