fix(ui): use application-defined WebSocket close code
This commit is contained in:
1 parent
400e901c9c
commit
0eabc89840
1 file changed
+2
-1
@@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user