Update API Call Flow (Web) authored by Nuwan's avatar Nuwan
...@@ -5,8 +5,8 @@ graph TB ...@@ -5,8 +5,8 @@ graph TB
Livechat2Api --Custom Login --> api:setUserAuth Livechat2Api --Custom Login --> api:setUserAuth
api:setUserAuth-->api:start api:setUserAuth-->api:start
api:start-->evt:onStartSuceess api:start-->evt:onStartSuceess
evt:onStartSuceess-->api:findUser evt:onStartSuceess-->api:findUser*
api:findUser(optional)-->evt:onRequestQueued api:findUser*-->evt:onRequestQueued
evt:onRequestQueued -->evt:onUserFound evt:onRequestQueued -->evt:onUserFound
evt:onRequestQueued -->evt:onUserNotFound evt:onRequestQueued -->evt:onUserNotFound
...@@ -20,5 +20,5 @@ api:start-->evt:onStartFailed ...@@ -20,5 +20,5 @@ api:start-->evt:onStartFailed
evt:onStartFailed --> End evt:onStartFailed --> End
``` ```
* api.findUser is optional and not required for most cases.
* Livechat2Api object exposes documented events and application must set handlers for those accordingly. * Livechat2Api object exposes documented events for application to set handlers accordingly.
\ No newline at end of file \ No newline at end of file