Skip to content

Commit

Permalink
1877 websocket connection timeout (#1882)
Browse files Browse the repository at this point in the history
* Add loader to ws loading state

* Change default ping value

* Make ping -2 on error

* Add loader and create state for ws error on header

* smaller loader
  • Loading branch information
adammertel authored Nov 3, 2023
1 parent 5854122 commit 10f9860
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 56 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/Theme/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EntityEnums } from "@shared/enums";
import theme from "./theme";

export const defaultPing = -2;
export const defaultPing = -10;

export const DropdownAny = "any";
export const wildCardChar = "*";
Expand Down
1 change: 1 addition & 0 deletions packages/client/src/Theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const theme = {
},

ping: {
"-2": "black",
"-1": "black",
"0": "#d73027",
"1": "#fc8d59",
Expand Down
Loading

0 comments on commit 10f9860

Please sign in to comment.