No project description provided
Project description
WebSockets Groups
Модуль реализующих менеджер групп WebSocket подключений
Functionality
- Регистрация / Удаление WS
- Создание / Удаление групп WS
- Подключение WS в группу
- Поддержка реестров: memory, redis
Quick start
Установка:
pip install websockets-groups
Подключение:
from fastapi import WebSocket
from websockets_groups import WSGroupsManager, MemoryStorage, BaseDispatcher
ws_groups_manager = WSGroupsManager(MemoryStorage())
class ChatDispatcher(BaseDispatcher):
pass
@app.websocket('/chats/')
async def ws_view(webdocket: WebSocket, chat_name: str):
await ws_groups_manager.register_ws(websocket, ChatDispatcher())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for async_websocket_client-0.0.0a5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f600b484d299db7be3a248198c92fc5896f1dd653aa41ddba41b4dab1ac09e20 |
|
MD5 | 89272b52f21fa25de4e2fa48cc20588f |
|
BLAKE2b-256 | 166aa49b4b64421858ab4731431558309c502a5b2fa398dfed804caa5827d533 |
Close
Hashes for async_websocket_client-0.0.0a5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536913c505b78e93486dfcd2d52c86c41638356bce84ca2213ed35deecaabdd2 |
|
MD5 | 59a74e678bac9dc79232c33fcfa417fa |
|
BLAKE2b-256 | cf500cc37551e092a44375da7221c17e4013c8a63127a0acfd252e8cb061df25 |