lxndrdagreat / dm-display-preact-client

DM Display web client made with Preact
https://dmdisplay.app
MIT License
0 stars 0 forks source link

Handle server disconnect state #8

Closed lxndrdagreat closed 3 years ago

lxndrdagreat commented 3 years ago

When socket closes (without a reason given), let user know.

lxndrdagreat commented 3 years ago

First stage of this is complete. On app launch, a "hearbeat" SocketClient attempt to connect to the server (it closes immediately after success). On failure, the home page changes to a "service unavailable" message.

Next step is to show connection issues while in the Display or Admin views.

lxndrdagreat commented 3 years ago

For now, this is as good as it can be. Might need to rethink some things with how sockets interact with the redux store.