聊天记录

This commit is contained in:
2023-11-30 15:26:26 +08:00
parent d7d4b7e41c
commit 4a702750d8
3 changed files with 25 additions and 26 deletions

View File

@@ -410,7 +410,7 @@
//如果浏览器支持WebSocket
if (window.WebSocket) {
//参数就是与服务器连接的地址
socket = new WebSocket("ws://192.168.1.117:19000/ws");
socket = new WebSocket("ws://119.45.242.222:29001/ws");
//客户端收到服务器消息的时候就会执行这个回调方法
socket.onmessage = function (event) {