diff --git a/chat_test/app/templates/chat.html b/chat_test/app/templates/chat.html index 4371425..385742e 100644 --- a/chat_test/app/templates/chat.html +++ b/chat_test/app/templates/chat.html @@ -39,7 +39,7 @@ let chat_id = 2 document.querySelector("#ws-id").textContent = chat_id; - let ws = new WebSocket(`ws://localhost:8000/chat/ws/${chat_id}?user_id=2`); + let ws = new WebSocket(`ws://localhost:8000/chat/ws/${chat_id}?user_id=1`); ws.onmessage = function (event) { appendMessage(event.data) };