asgi + daphne
This commit is contained in:
parent
6f4282d96e
commit
9bf24b072b
7 changed files with 76 additions and 31 deletions
8
testapi/routing.py
Normal file
8
testapi/routing.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# routing.py
|
||||
|
||||
from django.urls import path
|
||||
from . import consumers
|
||||
|
||||
websocket_urlpatterns = [
|
||||
path("ws/echo/", consumers.EchoConsumer.as_asgi()),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue