BF pinging

This commit is contained in:
a6a2f5842 2025-09-15 16:31:02 +02:00
parent fc23dff3d9
commit a6ff330e57
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ class Handler implements MessageComponentInterface
$message = json_decode($message->getPayload(), true);
// 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);
return gc_collect_cycles();
}