Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 049950f

Browse files
committed
Updated the dashboard logger
1 parent 97ab241 commit 049950f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Channels/PresenceChannel.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ public function subscribe(ConnectionInterface $connection, stdClass $payload)
7474
$connection->app->id
7575
);
7676
}
77-
});
7877

79-
DashboardLogger::log($connection->app->id, DashboardLogger::TYPE_SUBSCRIBED, [
80-
'socketId' => $connection->socketId,
81-
'channel' => $this->getName(),
82-
'multi-device' => isset($connection->duplicate),
83-
]);
78+
DashboardLogger::log($connection->app->id, DashboardLogger::TYPE_SUBSCRIBED, [
79+
'socketId' => $connection->socketId,
80+
'channel' => $this->getName(),
81+
'duplicate-connection' => count($sockets) > 1,
82+
]);
83+
});
8484
}
8585

8686
/**

0 commit comments

Comments
 (0)