webex / webex-js-sdk

JavaScript SDK for Webex
https://webex.github.io/webex-js-sdk/
Other
170 stars 336 forks source link

feat(mercury): remember last error #3545

Closed chburket closed 2 months ago

chburket commented 2 months ago

COMPLETES #SPARK-517229

This pull request addresses

When mercury is disconnected while still trying to connect, a "Mercury Connection Aborted" error is thrown. By keeping track of the last error causing a retry, the client can get more information about why mercury had not yet connected.

by making the following changes

Set this.lastError when the backoff callback is called with an error. Added mercury.getLastError() to return it.

Change Type

The following scenarios where tested

Tested manually with local cantina and updated tests.

I certified that


Make sure to have followed the contributing guidelines before submitting.