1 6
from channels.routing import route
2

3 6
channel_routing = [
4
    route("websocket.connect", "cyborgbackup.main.consumers.ws_connect", path=r'^/websocket/$'),
5
    route("websocket.disconnect", "cyborgbackup.main.consumers.ws_disconnect", path=r'^/websocket/$'),
6
    route("websocket.receive", "cyborgbackup.main.consumers.ws_receive", path=r'^/websocket/$'),
7
]

Read our documentation on viewing source code .

Loading