Routing

Here’s an example of how a WebsocketDemultiplexer class may be added to the routing configuration.

application = ProtocolTypeRouter({
    "websocket": URLRouter([
        url(r"^/$", Demultiplexer.as_asgi()),
    ])
})