fix: address Phase 2 review — error handlers, drain queue, prevent listener accumulation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
saopig1andClaude Opus 4.6 committed 2026-03-30 00:32:22 +08:00
1 parent a6bfd9d32c
commit d66355a829
3 files changed
+39 -25

No files matched your search

-6
View File
@@ -62,12 +62,6 @@ export function decodeResponse(raw: string): Record<string, string>[] {
});
}
export interface TS3Response {
errorId: number;
errorMessage: string;
data: Record<string, string>[];
}
export function parseErrorLine(line: string): { id: number; msg: string } {
const decoded = decodeResponse(line.replace(/^error\s+/, ""))[0];
return {