Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-13416

Firefly should reconnect periodically to the server when the connection fails

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Firefly
    • Labels:
    • Story Points:
      2
    • Epic Link:
    • Sprint:
      SUIT Sprint 2018-02, SUIT Sprint 2018-03
    • Team:
      Science User Interface

      Description

      Firefly requires a persistent websocket connection to the server in order to function properly.  In the case when the client is disconnected from the server, Firefly should periodically attempt to reconnect.  This can happen when one closes his/her laptop or switching from one network to another.

      When Firefly is no connected to the server, there should be an indication showing that it's no longer connected.

       

        Attachments

          Activity

          Hide
          xiuqin Xiuqin Wu [X] (Inactive) added a comment -

          How much could we keep the session information after the network disconnect and reconnect? How often do we want to check the connectivity? I agree  we should try after the network glitch, but shall we try to reconnect after a day of disconnection? 

          Show
          xiuqin Xiuqin Wu [X] (Inactive) added a comment - How much could we keep the session information after the network disconnect and reconnect? How often do we want to check the connectivity? I agree  we should try after the network glitch, but shall we try to reconnect after a day of disconnection? 
          Hide
          roby Trey Roby added a comment - - edited

          We can use online/offline events: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events

          It has been supported for awhile  on all the browsers we support.

          Demo using a react npm package:

          https://chris.bolin.co/offline/

           

          We don't need to package but I like the demo of the API

          Show
          roby Trey Roby added a comment - - edited We can use online/offline events: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/Online_and_offline_events It has been supported for awhile  on all the browsers we support. Demo using a react npm package: https://chris.bolin.co/offline/   We don't need to package but I like the demo of the API

            People

            Assignee:
            loi Loi Ly
            Reporter:
            loi Loi Ly
            Reviewers:
            Tatiana Goldina, Trey Roby
            Watchers:
            Emmanuel Joliet, Gregory Dubois-Felsmann, Loi Ly, Tatiana Goldina, Trey Roby, Xiuqin Wu [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.