This commit is contained in:
2026-01-26 18:52:41 +08:00
parent 27f170ae2b
commit c4e5668b29
3 changed files with 373 additions and 7 deletions

View File

@@ -71,7 +71,10 @@ export class WsProxyManager {
}
this.wssMap.delete(id);
}
getIds() {
getIds(beginWith?: string) {
if (beginWith) {
return Array.from(this.wssMap.keys()).filter(key => key.startsWith(beginWith));
}
return Array.from(this.wssMap.keys());
}
get(id: string) {