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

This commit is contained in:
rahthakor authored and Peter Steinberger committed 2026-01-14 23:34:48 +00:00
1 parent 400e901c9c
commit 0eabc89840
1 file changed
+2 -1
+2 -1
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");
});
}