mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-11 10:31:48 -05:00
16 lines
430 B
Python
16 lines
430 B
Python
from django.conf.urls import url
|
|
from channels.auth import AuthMiddlewareStack
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
from . import consumers
|
|
|
|
websocket_urlpatterns = [
|
|
url(r'websocket/$', consumers.EventConsumer),
|
|
url(r'websocket/broadcast/$', consumers.BroadcastConsumer),
|
|
]
|
|
|
|
application = ProtocolTypeRouter({
|
|
'websocket': AuthMiddlewareStack(
|
|
URLRouter(websocket_urlpatterns)
|
|
),
|
|
})
|