ejemplo-de-chat-con-Django/apps/chat/routing.py

8 lines
156 B
Python
Raw Normal View History

2020-11-15 10:52:18 +01:00
from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer),
]