We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109cfc4 commit f5884d2Copy full SHA for f5884d2
templates/web/src/services/realtime.ts.twig
@@ -22,6 +22,7 @@ export type RealtimeResponseEvent<T = any> = {
22
}
23
24
export enum RealtimeCode {
25
+ NORMAL_CLOSURE = 1000,
26
POLICY_VIOLATION = 1008,
27
UNKNOWN_ERROR = -1
28
@@ -199,7 +200,7 @@ export class Realtime {
199
200
this.socket.addEventListener('close', () => {
201
resolve();
202
}, { once: true });
- this.socket.close(RealtimeCode.POLICY_VIOLATION);
203
+ this.socket.close(RealtimeCode.NORMAL_CLOSURE);
204
} else {
205
206
0 commit comments