From 62db3ab2cfcdef8840ca90ffa04ef94e4a1a54f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sat, 30 Sep 2023 23:09:47 +0800 Subject: [PATCH] DEBUG --- public/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/client.js b/public/client.js index ed2ce97..e698cb7 100644 --- a/public/client.js +++ b/public/client.js @@ -137,7 +137,7 @@ export default class ClientList { send(name, data) { //console.log('广播数据:', data, '到通道:', name, '到所有客户端') this.clientlist.forEach(client => { - //console.log('发送数据到客户端:', client.id) + console.log('发送数据到客户端:', client.id, '通道:', name, '数据:', data) client.channels.filter(ch => ch.label === name).forEach(ch => { ch.send(data) })