9 lines
382 B
Python
9 lines
382 B
Python
from django.urls import re_path
|
|
|
|
from . import mainwebsocket
|
|
|
|
websocket_urlpatterns = [
|
|
re_path(r'ws/chat/(?P<creator>\w+)/(?P<single>\w+)/$', mainwebsocket.UsersChat, name="ws-chat"),
|
|
re_path(r'ws/appchat/(?P<creator>\w+)/(?P<single>\w+)/(?P<token>\w+)/$', mainwebsocket.UsersChat, name="ws-appchat"),
|
|
re_path(r'ws/', mainwebsocket.UsersConsumer, name="ws-default"),
|
|
] |