Basestructure Chat App

This commit is contained in:
2025-03-15 12:35:32 +01:00
parent ab6e27f80e
commit 889134784a
6 changed files with 93 additions and 3 deletions

8
core/chat/routing.py Normal file
View File

@@ -0,0 +1,8 @@
# 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()),
]