Events
The events that are triggered by Client instance. See the getInstance method.
Constants
Triggered when the Web SDK detects incorrect usage of the ACD module, e.g., usage of the same credentials in the different browsers or multiple browser windows. This event can also trigger when you make a request, reload the page and receive response after the page reloads.
Parameters
action:
getStatus
code:
message:
string
status:
Optional
Triggered when a contact center agent's status changes via SDK or within the contact center. Works both for SmartQueue and ACD v1.
Parameters
deferredStatus:
Optionaldescription:
string
Optionalid:
string
status:
Triggered after the Client.login, Client.loginWithOneTimeKey and Client.loginWithToken methods call.
Parameters
code:
OptionalOptional. Authentication result code.
displayName:
string
OptionalOptional. Authorized user's display name
key:
string
OptionalOptional. Use to calculate the hash parameter for Client.loginWithOneTimeKey method. Triggers the AuthResult event with the key after the Client.requestOneTimeLoginKey method is called.
result:
boolean
Whether the refresh is successful
tokens:
OptionalOptional. New tokens structure
Triggered if a connection to Voximplant Cloud has been closed because of network problems or the Client.disconnect function call.
Triggered after connection to the Voximplant Cloud has been established successfully.
See: Client.connect
Triggered if a connection to the Voximplant cloud could not be established.
See: Client.connect
Parameters
message:
string
Failure reason description
Triggered when there is a new incoming call to current user
Parameters
fallback:
boolean
Optionalresult:
boolean
Whether access is granted
stream:
MediaStream
MediaStream object
Triggered after sound playback has been stopped.
Triggered when reconnection to the server is successful.
Triggered when the SDK client loses connection with the Voximplant cloud and tries to reconnect, for example, when a customer's internet connection fails.
Triggered after the LoginTokens.refreshToken call
Parameters
code:
OptionalOptional. Authentication result code.
result:
boolean
Whether the refresh is successful
tokens:
OptionalOptional. New tokens structure
Triggered after SDK has been successfully initialized after the Client.init function call
Parameters
version:
string
SDK version
Triggered when the Web SDK detects incorrect use of the SmartQueue module, e.g., Using the same credentials in the different browsers or multiple browser's windows.
Parameters
action:
getStatus
code:
message:
string
status:
Optional
Triggered when SmartQueue messaging status of current user changed from SDK or from inside the SmartQueue messaging service.
Parameters
deferredStatus:
Optionaldescription:
string
Optionalid:
string
status: