fermi-ad / parameter_page_app

Web application implementing the Parameter Page.
MIT License
2 stars 1 forks source link

Clean up Connections when devices are removed #148

Open beauremus opened 12 months ago

beauremus commented 12 months ago

Describe the bug After removing all devices from a page, the data connection persists.

To Reproduce Steps to reproduce the behavior:

  1. Open a new, blank parameter page
  2. Open the browser developer tools, network tab
  3. Notice when a device is added that a WebSocket connection is initiated.
  4. Remove the device from the page.
  5. Notice that the WebSocket connection is still gathering data.

Expected behavior Removing devices from the page should clean up connections as well.

Screenshots

Screenshot of parameter page app with no devices and new connection messages