From 6cfefa862816c518d87ece4d911f02350fdb06d4 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Fri, 19 Jun 2015 11:12:11 +0000 Subject: [PATCH] Add docs for THREAD_USER_IS_READY event --- src/development/server-side-events.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/development/server-side-events.md b/src/development/server-side-events.md index a64d9ea..843691c 100644 --- a/src/development/server-side-events.md +++ b/src/development/server-side-events.md @@ -488,6 +488,19 @@ the following items is passed to the event handlers: `\Mibew\Thread::getMessages()` return value for details of its structure. +#### User is ready (since 2.1.0) + +The event can be referenced using value of `\Mibew\EventDispatcher\Events::THREAD_USER_IS_READY` +constant. + +This event is triggered after the thread is created, the user passed pre-chat +survey and all system messages are sent to him. This event is not triggered if +there are no online operators and the chat cannot be started. An associative +array with the following items is passed to the event handlers: + +* "thread": an instance of `\Mibew\Thread`. + + ### Users events #### Alter threads