switch from WSGI using uWSGI to ASGI using custom event loop based on uvicorn
This commit is contained in:
parent
b103205dfe
commit
6b3cc4c168
15 changed files with 610 additions and 8 deletions
8
core/notify_sessions/routing.py
Normal file
8
core/notify_sessions/routing.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from django.urls import path
|
||||
|
||||
from .consumers import NotifyConsumer
|
||||
|
||||
websocket_urlpatterns = [
|
||||
path('notify/<str:event_slug>/', NotifyConsumer.as_asgi()),
|
||||
]
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue