BF pinging
This commit is contained in:
parent
fc23dff3d9
commit
a6ff330e57
|
|
@ -101,7 +101,10 @@ class Handler implements MessageComponentInterface
|
||||||
$message = json_decode($message->getPayload(), true);
|
$message = json_decode($message->getPayload(), true);
|
||||||
|
|
||||||
// Cut short for ping pong
|
// Cut short for ping pong
|
||||||
if (strpos($message['event'], ':ping') !== false) {
|
if (
|
||||||
|
(strtolower($message['event']) === 'pusher:ping')
|
||||||
|
|| (strtolower($message['event']) === 'pusher.ping')
|
||||||
|
) {
|
||||||
$this->channelManager->connectionPonged($connection);
|
$this->channelManager->connectionPonged($connection);
|
||||||
return gc_collect_cycles();
|
return gc_collect_cycles();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue