Skip to content

Handle reconnect auth fail in the embed-widget app #1256

@mofojed

Description

@mofojed

Description

Right now if the JS API throws a reconnect auth fail error, the embed-widget (embed-grid/embed-chart deprecated) packages do not handle it. The change #1149 to wire up the reconnect auth fail event only added it to code-studio package, so the embed-widget package would not react the same.

Possibly add it to AppBootstrap or some other common component between the three packages.

Follow these steps to reproduce an auth failure:

  1. Start up server with deephaven-core
  2. Use ngrok to start a tunnel to that port, e.g.: ngrok http 10000
  3. Start up Web UI connecting to that tunnel, e.g.: VITE_CORE_API_URL=http://acfc-23-233-0-34.ngrok.io/jsapi npm start
  4. Open the Web UI in Firefox, run some commands to make sure initial connection is fine.
  5. Press Alt and from the File menu, select "Work Offline"
  6. See it transition to a disconnected state. Disconnected message should appear and should not be able to enter new commands
  7. Reconnect by deselecting "Work Offline" option from Step 5
  8. See it transition to connected state. Should be able to run commands and have the results appear.
  9. Kill the server (Ctrl+C). See it transition to a Shutdown state, app unloaded.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions