Suggestions

close search

StringeeClientListener class

Represents the event from the StringeeClient.


Constructors


StringeeClientListener()

Create a new StringeeClientListener.


Methods


onConnect: (stringeeClient: StringeeClient, userId: string) => void

Invoked when the StringeeClient is connected.

onDisConnect: (stringeeClient: StringeeClient) => void

Invoked when the StringeeClient is disconnected.

onFailWithError: (stringeeClient: StringeeClient, code: number, message: string) => void

Invoked when StringeeClient connect false.

onRequestAccessToken: (stringeeClient: StringeeClient) => void

Invoked when your token is expired. You must get a new token and reconnect.

onIncomingCall: (stringeeClient: StringeeClient, stringeeCall: StringeeCall) => void

Invoked when receive an incoming of StringeeCall.

onIncomingCall2: (stringeeClient: StringeeClient, stringeeCall2: StringeeCall2 ) => void

Invoked when receive an incoming of StringeeCall2.

onCustomMessage: (stringeeClient: StringeeClient, from: string, data: {}) => void

Invoked when receive custom message.

onObjectChange: (stringeeClient: StringeeClient, objectType: ObjectType, objectChanges: Array, changeType: ChangeType) => void

Invoked when receive an chat change event.

onReceiveChatRequest: (stringeeClient: StringeeClient, chatRequest: ChatRequest) => void

Invoked when receive a chat request.

onReceiveTransferChatRequest: (stringeeClient: StringeeClient, chatRequest: ChatRequest) => void

Invoked when receive a transfer chat request.

onTimeoutAnswerChat: (stringeeClient: StringeeClient, chatRequest: ChatRequest) => void

Invoked when chat request to agent timeout.

onTimeoutInQueue: (stringeeClient: StringeeClient, convId: string, customerId: string, customerName: string) => void

Invoked when no agent accept chat request and time out.

onConversationEnded: (stringeeClient: StringeeClient, convId: string, endedBy: string) => void

Invoked when conversation end.

onUserBeginTyping: (stringeeClient: StringeeClient, convId: string, userId: string, displayName: string) => void

Invoked when other user send begin typing event.

onUserEndTyping: (stringeeClient: StringeeClient, convId: string, userId: string, displayName: string) => void

Invoked when other user send end typing event.