10b3bb6497
* geis does not work with channels2 and never will be (it has to be python now) * pytest * rewrote cache system * use username instead of pk for admin user in tests
17 lines
492 B
Python
17 lines
492 B
Python
from channels.routing import ProtocolTypeRouter, URLRouter
|
|
from django.conf.urls import url
|
|
|
|
from openslides.utils.consumers import ProjectorConsumer, SiteConsumer
|
|
from openslides.utils.middleware import AuthMiddlewareStack
|
|
|
|
|
|
application = ProtocolTypeRouter({
|
|
# WebSocket chat handler
|
|
"websocket": AuthMiddlewareStack(
|
|
URLRouter([
|
|
url(r"^ws/site/$", SiteConsumer),
|
|
url(r"^ws/projector/(?P<projector_id>\d+)/$", ProjectorConsumer),
|
|
])
|
|
)
|
|
})
|