LivePersonInc / node-agent-sdk

LivePerson Agent Messaging SDK for NodeJS
MIT License
49 stars 78 forks source link

Co 1186 handle participants transform issues #94

Closed asicath closed 4 years ago

asicath commented 4 years ago

First off, throwing an error that can only be caught using "uncaughtException" is a bad practice. Instead the AgentSDK object will emit "error" events when they are caught.

Second, sometimes the participantsPId will not have an entry for a participant in one of the dialogs. In these cases the user will be ignored and omitted from the event that is emitted as "notification", a "warn" will also be emitted with a message "invalid participant on conversation". If this user's state is "SUGGESTED", no warn will be emitted.