<gh_stars>0
from channels.routing import ProtocolTypeRouter, URLRouter
import ios.routing
from djhome.json_token_auth import JsonTokenAuthMiddlewareStack


# Define Daphne routing
# djhome only expects WebSocket connections from Daphne

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

from channels.routing import ProtocolTypeRouter, URLRouter
import ios.routing
from djhome.json_token_auth import JsonTokenAuthMiddlewareStack


# Define Daphne routing
# djhome only expects WebSocket connections from Daphne

application = ProtocolTypeRouter({
    # (http->django views is added by default)
    'websocket': JsonTokenAuthMiddlewareStack(
        URLRouter(
            ios.routing.websocket_urlpatterns
        )
    ),
})
# Define Daphne routing # djhome only expects WebSocket connections from Daphne # (http->django views is added by default)