Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions

You are not logged in.

Announcement

#1 2020-05-23 19:02:12

ramdrocan
New member
Registered: 2020-05-23
Posts: 2

new Widget endChat event triggered from operatator

Hello,

I think I could found a bug about javascript events on user side. I use new widget a bunch of event listener that are described on doc.livehelperchat.com/docs/javascript-arguments/#javascript-options

Following procedure is followed:
1. Client tries to start a chat with filling start form. showWidget event is triggered on client side.
2. After clicking start chat button, Pending chat appears on operator side. chatStarted event is triggered on client side
3. Operator accepts the chat and chat is started.
4. Conversation is end and operator closes the chat.
5. After the chat is closed by operator, client cannot reply back. No javascript event is triggered for this action.
6. Client closes the widget window. endChat event is triggered. no hideWidget event is triggered.

During performing those steps, I except endChat event at 5. step and hideWidget event at 6. step. There is no other events on new widget, so endChat event should be triggered by also operator. What do you think? How can listen the chat closing events by operator on client side? If I can understand the event behavior correctly, I can prepare a patch for this feature.

Last edited by ramdrocan (2020-05-23 19:03:25)

Offline

#2 2020-05-23 19:15:16

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: new Widget endChat event triggered from operatator

Hi,

I’ll try check on monday. Source code formwidgets you can find on github, just see new wodget compilation instructions smile

Offline

#3 2020-05-25 12:19:43

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: new Widget endChat event triggered from operatator

Hi,

So. Everything works as expected. endChat and closeWidget are similar events except endChat happens then customers terminates the chat (widget always closes on this event) session closeWidget happens then visitor just closes the widget not necessary ending the chat session.

You can find here events.
https://github.com/LiveHelperChat/liveh … ex.js#L288

You can also improve documentation by creating a pull request smile

Offline

#4 2020-05-26 09:34:13

ramdrocan
New member
Registered: 2020-05-23
Posts: 2

Re: new Widget endChat event triggered from operatator

If an operator closes the chat, is "endChat" js event triggered on customer side? Which event should be listened in order to catch only operator chat closing event not customer's closing action? It seems like endChat event does not cover both of them.

Last edited by ramdrocan (2020-05-26 09:35:21)

Offline

#5 2020-05-26 09:35:34

remdex
Administrator
From: Lithuania
Registered: 2012-09-23
Posts: 3,661
Website

Re: new Widget endChat event triggered from operatator

I don't have event for that. There is only endChat event which is always triggered by customer.

Offline

Board footer