客服:使用轮训模拟 websocket

This commit is contained in:
puhui999
2024-07-02 17:10:17 +08:00
parent a4a8548b5a
commit 166030e3b8
2 changed files with 20 additions and 2 deletions
+2 -1
View File
@@ -166,7 +166,8 @@
//======================= 聊天工具相关 end =======================
onLoad(async () => {
socketInit({}, () => {
socketInit({}, (res) => {
console.log(res);
// 监听服务端消息
});
await nextTick()