Events
The events that are triggered by Client instance. See the getInstance method.
Constants
ACDError
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
code:
number
message:
string
ACDStatusUpdated
Triggered when a contact center agent's status changes via SDK or within the contact center. Works both for SmartQueue and ACD v1.
Parameters
description:
string
Optionalid:
string
status:
AuthResult
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
ConnectionClosed
Triggered if a connection to Voximplant Cloud has been closed because of network problems or the Client.disconnect function call.
ConnectionEstablished
Triggered after connection to the Voximplant Cloud has been established successfully.
See: Client.connect
ConnectionFailed
Triggered if a connection to the Voximplant cloud could not be established.
See: Client.connect
Parameters
message:
string
Failure reason description
IncomingCall
Triggered when there is a new incoming call to current user
MicAccessResult
Parameters
fallback:
boolean
Optionalresult:
boolean
Whether access is granted
stream:
MediaStream
MediaStream object
PlaybackError
PlaybackFinished
Triggered after sound playback has been stopped.
Reconnected
Triggered when reconnection to the server is successful.
Reconnecting
Triggered when the SDK client loses connection with the Voximplant cloud and tries to reconnect, for example, when a customer's internet connection fails.
RefreshTokenResult
Triggered after the LoginTokens.refreshToken call
Parameters
code:
OptionalOptional. Authentication result code.
result:
boolean
Whether the refresh is successful
tokens:
OptionalOptional. New tokens structure
SDKReady
Triggered after SDK has been successfully initialized after the Client.init function call
Parameters
version:
string
SDK version
SQError
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
code:
number
message:
string
SQMessagingStatusUpdated
Triggered when SmartQueue messaging status of current user changed from SDK or from inside the SmartQueue messaging service.
Parameters
description:
string
Optionalid:
string
status: