diff --git a/src/Protocols/Pusher/Server.php b/src/Protocols/Pusher/Server.php index fbf72b60..223a63b1 100644 --- a/src/Protocols/Pusher/Server.php +++ b/src/Protocols/Pusher/Server.php @@ -56,7 +56,7 @@ public function message(Connection $from, string $message): void true => $this->handler->handle( $from, $event['event'], - $event['data'] ?? [], + empty($event['data']) ? [] : $event['data'], $event['channel'] ?? null ), default => ClientEvent::handle($from, $event)