debug
This commit is contained in:
parent
4cef0b6b66
commit
8afd1acd15
5
fmhub.js
5
fmhub.js
@ -40,7 +40,10 @@ export default class {
|
||||
channel.forEach((value, userid) => {
|
||||
console.log(userid, value)
|
||||
let user = this.users.get(userid) || new Map()
|
||||
if (!user.size) return console.log("订阅频道的用户不在线, 应移除此订阅");
|
||||
if (!user.size) {
|
||||
console.log(user)
|
||||
return console.log(`订阅频道的用户 ${userid} 没有会话连接, 应移除此订阅记录`);
|
||||
}
|
||||
user.forEach((value, ws) => {
|
||||
ws.send(msg)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user