Skip to content

Reconnect not possible when first attempt failed #70

Description

@GreenRover

Describe the bug

I try to connect to the broker:

this.solaceMessageClient.connect(sessionProperties as any).then(() => {
console.info('Connected to the broker: ' + sessionProperties.url);
}, err => {
console.error('Connection to broker failed', err);
});

But get an unauthorized from the broker.

Fixing the broker configuration.

Retry to connect but still get the unauthorized error until:
eighter reload the browser F5 or
do a (this.solaceMessageClient as ɵSolaceMessageClient).dispose();

Expected behavior

  • The _session get cleared on connection error.
  • The _session get cleared on disconnect.

Question

why is dispose() not exposed by the interface SolaceMessageClient?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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