Skip to content

Reconnect not possible when first attempt failed #70

@GreenRover

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?

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