LiveHelperChat / livehelperchat-extensions

Live helper chat extensions. Main repository https://github.com/remdex/livehelperchat
50 stars 38 forks source link

customstatus callback when chat is answered by an agent. #8

Closed Mike-Benoit closed 1 year ago

Mike-Benoit commented 1 year ago

For the customstatus callback, I know there is "new_chat.php" that is triggered when the chat is initiated by the end-user.

But is there a customstatus callback that only triggers when the agent answers the chat?

remdex commented 1 year ago

Listen for chat.accept event.

Similar to this - https://github.com/LiveHelperChat/livehelperchat-extensions/blob/master/customstatus/bootstrap/bootstrap.php#L14

Mike-Benoit commented 1 year ago

So I assume it can be used through the callback file like "new_chat.php" system, and has to connect to the events instead through the Bootstrap.php?

remdex commented 1 year ago

Read few times what I wrote above... I gave a sample how to listen to that event...