Module ws

Module ws 

Source
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§

NotificationInner
Inner content of a notification with generic payload type
WsErrorBody
Error body for websocket responses
WsMessageOrResponse
Either a websocket message or a response
WsMethodRequest
Method-specific websocket request
WsNotification
Notification message sent over websocket
WsRequest
Generic websocket request
WsResponse
Generic websocket response
WsResponseResult
Result part of a websocket response
WsSubscribeResponse
Response to a subscription request
WsUnsubscribeRequest
Request to unsubscribe from a websocket subscription
WsUnsubscribeResponse
Response to an unsubscribe request