This commit is contained in:
2023-08-12 13:00:27 +03:00
parent 03882addc1
commit 7c7452a93d

View File

@@ -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',
}))
chatSocket.onopen = function(){
console.log("open")
chatSocket.send('A');
}