minimal-webrtc/camera_site/routing.py

10 lines
247 B
Python

from channels.routing import ProtocolTypeRouter, URLRouter
import camera.routing
application = ProtocolTypeRouter({
# (http->django views is added by default)
'websocket': URLRouter(
camera.routing.websocket_urlpatterns
),
})