From 394d74b553360a82f803a34205a8df609777fdff Mon Sep 17 00:00:00 2001 From: Bobby Date: Mon, 15 May 2023 07:30:20 -0400 Subject: Simple working live chat --- chat/routing.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 chat/routing.py (limited to 'chat/routing.py') diff --git a/chat/routing.py b/chat/routing.py new file mode 100644 index 00000000..69101be1 --- /dev/null +++ b/chat/routing.py @@ -0,0 +1,6 @@ +from django.urls import re_path +from . import consumers + +websocket_urlpatterns = [ + re_path(r'ws/chat', consumers.ChatConsumer.as_asgi()), +] -- cgit v1.2.3