This commit is contained in:
2023-08-12 13:14:26 +03:00
parent 7c7452a93d
commit 1d64583697
3 changed files with 38 additions and 29 deletions

View File

@@ -43,11 +43,19 @@ chatSocket.onmessage = function (e) {
// console.log("open")
// }
chatSocket.onopen = function(){
console.log("open")
}
chatSocket.onclose = function () {
console.log("close")
}
chatSocket.onopen = function(){
console.log("open")
chatSocket.send('A');
}
function sendMessageSocket (data) {
//
chatSocket.send(JSON.stringify(data))
// }
}