aboutsummaryrefslogtreecommitdiff
path: root/chat/routing.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-15 07:30:20 -0400
committerBobby <[email protected]>2023-05-15 07:30:20 -0400
commit394d74b553360a82f803a34205a8df609777fdff (patch)
tree8e78eb5214a47eb5fa46d7400cea192ed6b3aa94 /chat/routing.py
parent4cbc1c64b3f5f7bc6f6f9744dd09828d7e79d65d (diff)
downloadthatcomputerscientist-394d74b553360a82f803a34205a8df609777fdff.tar.xz
thatcomputerscientist-394d74b553360a82f803a34205a8df609777fdff.zip
Simple working live chat
Diffstat (limited to 'chat/routing.py')
-rw-r--r--chat/routing.py6
1 files changed, 6 insertions, 0 deletions
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()),
+]