Module websocket

Module websocket 

Source
Expand description

The websocket client for listening to Renegade events

Structs§

RenegadeWebsocketClient
The websocket client for listening to Renegade events
TaskWaiter
A thin wrapper around a notification channel that waits for a task to complete then transforms the status into a result
TaskWaiterManager
Manages sending notifications to task waiters

Enums§

TaskStatusNotification
A task status notification

Constants§

ADMIN_BALANCES_TOPIC
The admin balances websocket topic
ADMIN_ORDERS_TOPIC
The admin orders websocket topic
DEFAULT_TASK_TIMEOUT
The timeout for a task to complete

Functions§

create_notification_channel
Create a new notification channel
create_subscription_channel
Create a new subscription channel

Type Aliases§

SharedMap
A shared map type
SubscribeRx
A channel on which to receive websocket subscriptions
SubscribeTx
A channel on which to request websocket subscriptions
WsSink
A websocket sink (write end)
WsStream
A read/write websocket stream