fix: add gateway connection debug output
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user