fix(ui): use application-defined WebSocket close code
This commit is contained in:
committed by
Peter Steinberger
parent
400e901c9c
commit
0eabc89840
@@ -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