html-over-websockets-with-d.../app/website/routing.py
Andros Fenollosa 33d0a75775 Add chat
2021-11-23 21:41:52 +01:00

9 lines
209 B
Python

from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r"ws/pages/(?P<room_id>\w+)/$", consumers.WebsiteConsumer),
re_path(r"ws/chat/$", consumers.ChatConsumer),
]