From 049950f015cc0ee98f6fe461ffee074c60291ec2 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Wed, 16 Sep 2020 11:09:14 +0300 Subject: [PATCH] Updated the dashboard logger --- src/Channels/PresenceChannel.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Channels/PresenceChannel.php b/src/Channels/PresenceChannel.php index 7aaf31b..dfa1a80 100644 --- a/src/Channels/PresenceChannel.php +++ b/src/Channels/PresenceChannel.php @@ -74,13 +74,13 @@ class PresenceChannel extends PrivateChannel $connection->app->id ); } - }); - DashboardLogger::log($connection->app->id, DashboardLogger::TYPE_SUBSCRIBED, [ - 'socketId' => $connection->socketId, - 'channel' => $this->getName(), - 'multi-device' => isset($connection->duplicate), - ]); + DashboardLogger::log($connection->app->id, DashboardLogger::TYPE_SUBSCRIBED, [ + 'socketId' => $connection->socketId, + 'channel' => $this->getName(), + 'duplicate-connection' => count($sockets) > 1, + ]); + }); } /**