Files
awx/awx/main/routing.py
2018-03-23 17:00:27 -04:00

13 lines
442 B
Python

from channels.routing import route
from awx.network_ui.routing import channel_routing as network_ui_routing
channel_routing = [
route("websocket.connect", "awx.main.consumers.ws_connect", path=r'^/websocket/$'),
route("websocket.disconnect", "awx.main.consumers.ws_disconnect", path=r'^/websocket/$'),
route("websocket.receive", "awx.main.consumers.ws_receive", path=r'^/websocket/$'),
]
channel_routing += network_ui_routing