Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
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
Hi,
I’ll try check on monday. Source code formwidgets you can find on github, just see new wodget compilation instructions
Offline
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
Offline
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
I don't have event for that. There is only endChat event which is always triggered by customer.
Offline