backend/websocket/routing.py

9 lines
210 B
Python

from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
# change this for handling multiple users
re_path(r'ws/notifications/', consumers.NotificationsConsumer.as_asgi()),
]