b775f2788c
* build(deps): bump channels from 2.4.0 to 3.0.0 Bumps [channels](https://github.com/django/channels) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/django/channels/releases) - [Changelog](https://github.com/django/channels/blob/master/CHANGELOG.txt) - [Commits](https://github.com/django/channels/compare/2.4.0...3.0.0) Signed-off-by: dependabot[bot] <support@github.com> * root: update for channels 3 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens.langhammer@beryju.org>
15 lines
384 B
Python
15 lines
384 B
Python
"""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)
|
|
"websocket": URLRouter(
|
|
[path("ws/outpost/<uuid:pk>/", OutpostConsumer.as_asgi())]
|
|
),
|
|
}
|
|
)
|