File size: 248 Bytes
75df934
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
# chat/routing.py
from django.urls import re_path

from . import consumers

websocket_urlpatterns = [
    re_path(r"ws/chat/(?P<room_name>\w+)/$", consumers.ChatConsumer.as_asgi()),
    re_path("ws/chat",consumers.ChatConsumer.as_asgi()),
]