Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Networkconnection #20

Closed
11 tasks done
BioPhoton opened this issue Jan 11, 2023 · 0 comments · Fixed by #23
Closed
11 tasks done

Handle Networkconnection #20

BioPhoton opened this issue Jan 11, 2023 · 0 comments · Fixed by #23
Labels
☑:feat New feature or request

Comments

@BioPhoton
Copy link
Collaborator

BioPhoton commented Jan 11, 2023

As some of the application's depend on a network connection we need to handle it's state.

The logic of the Websocke as well as the UI depends on a stable connection. Id the connection drops we have to handle errors and informing the user about it.

TODOS:

  • Implement a API /is-online that returns 1 to get a way to check if a internet connection is given
  • Implement a NetworkConnection service that exposes the online status
  • Implement a Ws service that wraps the default RxJS WebSocketSubject
    • implement a init method to initialize the connecction logic
    • disconnect the ws id the network connection drops
    • disconnect the ws id the network connection drops
  • Disable the SimpleAuditForm if the connection dropped
  • Enable the SimpleAuditForm if the connection establishes again
  • Initialize the WS login after the first interaction that requires a WS connection is done (e.g. click the submit button, open a result)
  • Add disabled styles to forms
  • Remove old code
@BioPhoton BioPhoton added the ☑:feat New feature or request label Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☑:feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant