From 9ea81709eb649103e3c0c120badde89453a12948 Mon Sep 17 00:00:00 2001 From: borissedw Date: Sat, 12 Aug 2023 12:50:38 +0300 Subject: [PATCH] 0.0.114 --- static/js/chat_sockets.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index 544f7bc..f4db56d 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -37,4 +37,8 @@ const chatSocket = new WebSocket(url); chatSocket.onmessage = function (e) { let data = JSON.parse(e.data) console.log('Data: ', data) -} \ No newline at end of file +} + +chatSocket.send(JSON.stringify({ +'message': 'check connected', +})) \ No newline at end of file