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.0a6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88260c6f8f3397fa6edb115e8f1392d9896795d22040b3c4f07bc4644d890a49 |
|
MD5 | e96ab4f517ed0b9b6d796db763998889 |
|
BLAKE2b-256 | 3edb70ac580bce05e16992c7b85b68afc47a740f8d1255f618883e498e7b3eb0 |
Close
Hashes for async_websocket_client-0.0.0a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a6d80fe417dbb0c22ba32d21cb553faa09d81bde81e818dc3c14673338653a1 |
|
MD5 | b373185d4b3f9f3ef8bdead16c3097e7 |
|
BLAKE2b-256 | 0ec0837e6775bc6f7a5b95dc90fc07255d7af122df0a9c793f91d658cf93d96e |