amazon-connect / amazon-connect-chatjs

Amazon Connect ChatJS - a browser-based contact center integration API for Chat on the Agent and Customer side.
https://docs.aws.amazon.com/connect/latest/adminguide/what-is-amazon-connect.html
Apache License 2.0
93 stars 54 forks source link

Fixing websocket heartbeat after losing connection #151

Closed mliao95 closed 1 year ago

mliao95 commented 1 year ago

Issue #, if available: closes #125

Description of changes:

This PR updates amazon-connect-websocket-manager.js to re-establish the heartbeat interval after losing connection for over 10 seconds.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

mliao95 commented 1 year ago

Tested with ui-examples and saw that heartbeat was restored after losing connection for over 10s