Skip to main content

No project description provided

Project description

WebSockets Groups

Модуль реализующих менеджер групп WebSocket подключений

PyPI PyPI - Python Version GitLab last commit

Test coverage Downloads GitLab stars

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async_websocket_client-0.0.0a5.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_websocket_client-0.0.0a5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file async_websocket_client-0.0.0a5.tar.gz.

File metadata

  • Download URL: async_websocket_client-0.0.0a5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.8.16 Linux/5.15.0-71-generic

File hashes

Hashes for async_websocket_client-0.0.0a5.tar.gz
Algorithm Hash digest
SHA256 f600b484d299db7be3a248198c92fc5896f1dd653aa41ddba41b4dab1ac09e20
MD5 89272b52f21fa25de4e2fa48cc20588f
BLAKE2b-256 166aa49b4b64421858ab4731431558309c502a5b2fa398dfed804caa5827d533

See more details on using hashes here.

File details

Details for the file async_websocket_client-0.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for async_websocket_client-0.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 536913c505b78e93486dfcd2d52c86c41638356bce84ca2213ed35deecaabdd2
MD5 59a74e678bac9dc79232c33fcfa417fa
BLAKE2b-256 cf500cc37551e092a44375da7221c17e4013c8a63127a0acfd252e8cb061df25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page