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

make connectionToken accessible from connectionDetails value; addresses #154 #176

Closed spencerlepine closed 1 year ago

spencerlepine commented 1 year ago

Issue #, if available: https://github.com/amazon-connect/amazon-connect-chatjs/issues/154

"assigned connectionDetails when calling session.connect so getChatDetails() & chatDetails in onConnectionEstablished contain connectionToken"

connectionDetails property seemingly never initialised, meaning connectionToken wasn't accessible on a chat session. The chatDetails property in onConnectionEstablished and also the getChatDetails() method referenced a connectionToken in the types but it was never available.

Description of changes: Assigned value to connectionDetails property when calling session.connect() so properties within that can be accessed.

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

spencerlepine commented 1 year ago

Merging, received 2 approvals internally