uchill/backend/apps/chat/routing.py

12 lines
326 B
Python

"""
WebSocket URL routing для chat приложения.
"""
from django.urls import re_path
from . import consumers
chat_websocket_urlpatterns = [
re_path(r'ws/chat/(?P<chat_uuid>[0-9a-f-]+)/$', consumers.ChatConsumer.as_asgi()),
re_path(r'ws/presence/$', consumers.UserPresenceConsumer.as_asgi()),
]