Skip to content

Handle disconnect/reconnect error display/status from JS API better #181

@nbauernfeind

Description

@nbauernfeind

As a user of the system, it would be nice to know when my worker crashes, possibly why it crashed, and how long ago it appears to have crashed.

The worker can, on best effort, attempt to log to the user the error that occurred just prior to it exiting. This error would hit the console log.

However, if enough streams/rpcs fail then the UI drops into a "everything is broken" mode, which clears the page/layout. It would be nice if we can alert the user that things are not working from the Javascript Client's perspective, without clearing this important console output.

I suggest that there might be a solution in the jsapi firing an event that causes the UI to either:

  • create the modal-pop-up with the text in the event
  • update the existing modal-pop-up
  • as well as be able to close the pop-up if it truly was a transient, temporary, disconnect from the backend

I like Google's approach to this:
Screen Shot 2021-09-01 at 3 04 12 PM

Perhaps the event can have a "message", a "start-time", and boolean flag to say where or not the "click-to-refresh" link is shown.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions