rename _clid to clid

This commit is contained in:
Luk 2024-09-19 11:18:01 +08:00
parent cbd5f5feb1
commit a33572c240

View File

@ -102,9 +102,9 @@ module.exports = {
return this
},
removeUserSocket ({ _clid } = {}) {
removeUserSocket ({ clid } = {}) {
my.wsServer.clients.forEach((socket) => {
if ( _clid && socket.skid === _clid ) {
if (clid && socket.skid === clid) {
delete socket.usid
// 要不要清除 socket.? 似乎不清除也没问题
}