Skip to content
This repository was archived by the owner on May 22, 2020. It is now read-only.
This repository was archived by the owner on May 22, 2020. It is now read-only.

Websocket connection closed over time. "Expected websocket state OPEN but found CLOSED" #331

@tratch

Description

@tratch

hadouken-js-adapter version: 1.44.1

Our application opens a connection to an openfin runtime to subscribe to messages on the InterApplication bus and to check if an app with a given uuid exists.

However, if some time passes after calling connect, we get the following error: Expected websocket state OPEN but found CLOSED.

For example:

      const fin = await connect({
        uuid: uuidV4(),
        runtime: {
          version: 'stable'
        }
      });

...
// elsewhere in the code a few seconds later
fin.System.resolveUuid('1234');
// error thrown: Expected websocket state OPEN but found CLOSED

Notes:

  • Seeing the same behaviour in hadouken-js-adapter version 0.42.2
  • For context, nonPersistent is set to false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions