fix: add gateway connection debug output

This commit is contained in:
Peter Steinberger
2026-01-08 02:51:28 +01:00
parent 1ebde4dc24
commit 6aa6c837e7
8 changed files with 133 additions and 44 deletions

View File

@@ -28,6 +28,11 @@ vi.mock("../infra/tailnet.js", () => ({
}));
vi.mock("./client.js", () => ({
describeGatewayCloseCode: (code: number) => {
if (code === 1000) return "normal closure";
if (code === 1006) return "abnormal closure (no close frame)";
return undefined;
},
GatewayClient: class {
constructor(opts: {
url?: string;