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