Updated the dashboard logger

This commit is contained in:
Alex Renoki 2020-09-16 11:09:14 +03:00
parent 97ab241fa3
commit 049950f015
1 changed files with 6 additions and 6 deletions

View File

@ -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,
]);
});
}
/**