bundle.website.core.ws_messages¶
Typed websocket message helpers shared by website pages.
Attributes¶
Classes¶
Mixin that adds async websocket send/receive helpers to Data models. |
|
Download progress message emitted when transfer starts. |
|
Download progress message emitted while bytes are received. |
|
Download progress message emitted when transfer completes. |
Module Contents¶
- bundle.website.core.ws_messages.MessageT¶
- class bundle.website.core.ws_messages.WebSocketDataMixin¶
Mixin that adds async websocket send/receive helpers to Data models.
- class bundle.website.core.ws_messages.DownloaderStartMessage(/, **data: Any)¶
Bases:
bundle.core.data.Data,WebSocketDataMixinDownload progress message emitted when transfer starts.
- type: Literal['downloader_start'] = 'downloader_start'¶
- class bundle.website.core.ws_messages.DownloaderUpdateMessage(/, **data: Any)¶
Bases:
bundle.core.data.Data,WebSocketDataMixinDownload progress message emitted while bytes are received.
- type: Literal['downloader_update'] = 'downloader_update'¶
- class bundle.website.core.ws_messages.DownloaderEndMessage(/, **data: Any)¶
Bases:
bundle.core.data.Data,WebSocketDataMixinDownload progress message emitted when transfer completes.
- type: Literal['downloader_end'] = 'downloader_end'¶