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
91 stars 53 forks source link

reject send callbacks instead of returning null #204

Closed mhiaror closed 7 months ago

mhiaror commented 7 months ago

Issue #, if available: Currently, if a connection is not active. ChatJS does not reject promise instead return null. We want to have consistent return value returned i.e. Promise which will either get resolved or rejected.

Description of changes: reject send callbacks instead of returning null

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