mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
fix: ws error
This commit is contained in:
parent
f299eedb1b
commit
4668b97417
@ -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)}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user