asgi + daphne

This commit is contained in:
aa.afanasyev 2025-07-15 01:34:22 +09:00
parent 6f4282d96e
commit 9bf24b072b
7 changed files with 76 additions and 31 deletions

8
testapi/routing.py Normal file
View file

@ -0,0 +1,8 @@
# routing.py
from django.urls import path
from . import consumers
websocket_urlpatterns = [
path("ws/echo/", consumers.EchoConsumer.as_asgi()),
]