Skip to content
This repository was archived by the owner on Apr 2, 2024. It is now read-only.

Commit 9313c52

Browse files
authored
Change WS_PING_INTERVAL_IN_SECONDS env var to hardcoded 30 seconds (#255)
1 parent 61a7b1a commit 9313c52

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,4 @@ export const ENV: Env = window.__env__ || {
6464
GITLAB_URL: process.env.REACT_APP_GITLAB_URL,
6565
CI_PROJECT_PATH: process.env.REACT_APP_CI_PROJECT_PATH,
6666
LOCALE: process.env.REACT_APP_LOCALE || "en-GB",
67-
WS_PING_INTERVAL_IN_SECONDS: parseInt(process.env.WS_PING_INTERVAL_IN_SECONDS || "30"),
6867
};

src/websocketService/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface SurfWebSocket<T> {
1515
}
1616

1717
const pingMessage = "__ping__";
18-
const pingintervalInMilliseconds = ENV.WS_PING_INTERVAL_IN_SECONDS * 1000;
18+
const pingintervalInMilliseconds = 30000;
1919

2020
const websocketSettings: Options = {
2121
retryOnError: true,

0 commit comments

Comments
 (0)