Gracefully handle websocket disconnection in web terminal
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Description
Currently when Workhorse closes the websocket connection the web terminal becomes just unresponsive - the text that I type in does not appear in the screen. In the Chrome developers console I get:
WebSocket is already in CLOSING or CLOSED state.
We should at least provide some feedback to the user or, ideally, attempt to reconnect.
Proposal
- Display a message that connection was terminated
- Try to reconnect
UX
Links / references
Edited by 🤖 GitLab Bot 🤖
