This commit is contained in:
2023-08-16 15:15:17 +03:00
parent 66c142a4d6
commit 0acfaca8f6
8 changed files with 227 additions and 16 deletions

View File

@@ -40,11 +40,7 @@
// }
// var i = 0
url = `ws://localhost:8000/ws/socket-server/?user_id=${user_id}`;
const chatSocket = new WebSocket(url);
const chatSocket = new WebSocket(ws_url);
function sendMessageSocket (data) {