This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-02 22:04:12 +00:00
|
|
|
"""root Websocket URLS"""
|
|
|
|
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
from passbook.outposts.channels import OutpostConsumer
|
|
|
|
|
|
|
|
application = ProtocolTypeRouter(
|
|
|
|
{
|
|
|
|
# (http->django views is added by default)
|
2020-11-02 09:26:26 +00:00
|
|
|
"websocket": URLRouter(
|
|
|
|
[path("ws/outpost/<uuid:pk>/", OutpostConsumer.as_asgi())]
|
|
|
|
),
|
2020-09-02 22:04:12 +00:00
|
|
|
}
|
|
|
|
)
|