14 lines
356 B
Python

# -*- coding: utf-8 -*-
"""
@Remark: websocket的路由文件
"""
from django.urls import re_path,path
from . import consumers
from apps.lymessages.wsmessage import NotificationConsumer
websocket_urlpatterns = [
re_path(r'^ws/webssh/$', consumers.TerminalConsumer.as_asgi()),
re_path(r'^ws/msg/$', NotificationConsumer.as_asgi()),
]