fix: ws error

This commit is contained in:
Chareice 2025-01-13 22:17:05 +08:00
parent f299eedb1b
commit 4668b97417
No known key found for this signature in database

View File

@ -224,6 +224,9 @@ export class WSServer extends EventEmitter {
setClientTag(clientId: string, tagKey: string, tagValue: string) {
const client = this.webSocketClients.get(clientId);
if (!client) {
return;
}
client.tags.add(`${tagKey}#${tagValue}`);
console.log(`client tags: ${Array.from(client.tags)}`);
}