small updates
This commit is contained in:
parent
e88d063184
commit
b983278a17
@ -76,7 +76,7 @@ module.exports = {
|
||||
})
|
||||
|
||||
socket.on('close', () => {
|
||||
console.log({ _at: new Date().toJSON(), _from: 'basesocket:onClose', _type: 'CLOG', usid: socket?.usid, skid: socket?.skid }, '\n,') // don't know why, but this output happens too often without usid.
|
||||
console.log({ _at: new Date().toJSON(), _from: 'basesocket:onClose', _type: 'CLOG', usid: socket?.usid, commid: socket?.commid, skid: socket?.skid }, '\n,') // don't know why, but this output happens too often without usid.
|
||||
//delete my.socketPool[socket?.usid] // 20240917 恍然大悟,同一个用户可以多次登录,多个socket会互相覆盖。如果仅仅根据 usid 来删除,其他尚在连接的socket也会被删了。
|
||||
// delete my.socketPool[socket?.skid]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user