pmessage/frontend/routing.py

7 lines
166 B
Python

from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/room/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
]