|
|
@ -104,6 +104,9 @@ class Ratchet implements MessageComponentInterface |
|
|
|
// Init connection confirmed |
|
|
|
// Init connection confirmed |
|
|
|
$connection->confirmed = false; |
|
|
|
$connection->confirmed = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Init connection counter |
|
|
|
|
|
|
|
$connection->count = 0; |
|
|
|
|
|
|
|
|
|
|
|
// Debug open event on enabled |
|
|
|
// Debug open event on enabled |
|
|
|
if ($config->event->open->debug->enabled) |
|
|
|
if ($config->event->open->debug->enabled) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -132,6 +135,14 @@ class Ratchet implements MessageComponentInterface |
|
|
|
\Ratchet\ConnectionInterface $connection, |
|
|
|
\Ratchet\ConnectionInterface $connection, |
|
|
|
$request |
|
|
|
$request |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
// Filter request |
|
|
|
|
|
|
|
$request = trim( |
|
|
|
|
|
|
|
$request |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Increase connection counter |
|
|
|
|
|
|
|
$connection->count++; |
|
|
|
|
|
|
|
|
|
|
|
// Init config namespace |
|
|
|
// Init config namespace |
|
|
|
$config = $this->_config->nps->event->message; |
|
|
|
$config = $this->_config->nps->event->message; |
|
|
|
|
|
|
|
|
|
|
@ -192,6 +203,7 @@ class Ratchet implements MessageComponentInterface |
|
|
|
'{host}', |
|
|
|
'{host}', |
|
|
|
'{crid}', |
|
|
|
'{crid}', |
|
|
|
'{code}', |
|
|
|
'{code}', |
|
|
|
|
|
|
|
'{iter}', |
|
|
|
'{sent}', |
|
|
|
'{sent}', |
|
|
|
'{size}' |
|
|
|
'{size}' |
|
|
|
], |
|
|
|
], |
|
|
@ -200,6 +212,7 @@ class Ratchet implements MessageComponentInterface |
|
|
|
(string) $connection->remoteAddress, |
|
|
|
(string) $connection->remoteAddress, |
|
|
|
(string) $connection->resourceId, |
|
|
|
(string) $connection->resourceId, |
|
|
|
(string) $connection->captcha, |
|
|
|
(string) $connection->captcha, |
|
|
|
|
|
|
|
(string) $connection->count, |
|
|
|
(string) str_replace('%', '%%', $request), |
|
|
|
(string) str_replace('%', '%%', $request), |
|
|
|
(string) mb_strlen($request) |
|
|
|
(string) mb_strlen($request) |
|
|
|
], |
|
|
|
], |
|
|
|