diff --git a/static/js/chat_sockets.js b/static/js/chat_sockets.js index 5535b6c..24e8fdf 100644 --- a/static/js/chat_sockets.js +++ b/static/js/chat_sockets.js @@ -39,14 +39,15 @@ chatSocket.onmessage = function (e) { console.log('Data: ', data) } -chatSocket.onopen = function () { - console.log("open") -} +// chatSocket.onopen = function () { +// console.log("open") +// } chatSocket.onclose = function () { console.log("close") } -chatSocket.send(JSON.stringify({ -'message': 'check connected', -})) \ No newline at end of file +chatSocket.onopen = function(){ + console.log("open") + chatSocket.send('A'); +} \ No newline at end of file