Изменил chat.html
This commit is contained in:
parent
58a64bdda4
commit
f3495c28c0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue