-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconnect the HTTP client websocket automatically (#1254)
## Problem When the current WebSocket is closed or there is an error the frontend is not aware of it and does not react properly just stop receiving notifications. It would be nice to reconnect silently reporting in case that it is impossible to reconnect after a while. - Trello Card: https://trello.com/c/Kqaez0RH/3632-2-agama-adapt-connection-error-handling ## Solution When the WebSocket is closed we will try to reconnect during a while. From that point in advance the state of the socket will be unrecoverable needing a user manual reconnection. See below the console log screenshot and the error page shown in case the Websocket was not connected automatically. ## Screenshots ![Screenshot from 2024-05-27 09-02-43](https://github.com/openSUSE/agama/assets/7056681/1b80cc31-96f0-4264-8175-32f28c8750b1) ![Screenshot from 2024-05-27 09-02-02](https://github.com/openSUSE/agama/assets/7056681/d08a796c-2351-4591-af55-36671e56fd6f)
- Loading branch information
Showing
10 changed files
with
258 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.