DEBUG
This commit is contained in:
parent
8711fa9555
commit
62db3ab2cf
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user