fix(ui): use application-defined WebSocket close code

This commit is contained in:
rahthakor
2026-01-15 01:38:30 +05:30
committed by Peter Steinberger
parent 400e901c9c
commit 0eabc89840

View File

@@ -134,7 +134,8 @@ export class GatewayBrowserClient {
this.opts.onHello?.(hello);
})
.catch(() => {
this.ws?.close(1008, "connect failed");
// 4008 = application-defined code (browser rejects 1008 "Policy Violation")
this.ws?.close(4008, "connect failed");
});
}