From 51232d6653679837bb240bf7afb3ecaad579f12a Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Tue, 4 Dec 2018 01:05:18 +0100 Subject: [PATCH] wip --- src/Statistics/Events/StatisticsUpdated.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Statistics/Events/StatisticsUpdated.php b/src/Statistics/Events/StatisticsUpdated.php index d6fa70b..9368309 100644 --- a/src/Statistics/Events/StatisticsUpdated.php +++ b/src/Statistics/Events/StatisticsUpdated.php @@ -23,11 +23,11 @@ class StatisticsUpdated implements ShouldBroadcast public function broadcastWith() { return [ - 'time' => $this->webSocketsStatisticsEntry->created_at->timestamp, - 'app_id' => $this->webSocketsStatisticsEntry->appId, - 'peak_connection_count' => $this->webSocketsStatisticsEntry->peakConnectionCount, - 'websocket_message_count' => $this->webSocketsStatisticsEntry->webSocketMessageCount, - 'api_message_count' => $this->webSocketsStatisticsEntry->apiMessageCount, + 'time' => (string)$this->webSocketsStatisticsEntry->created_at, + 'app_id' => $this->webSocketsStatisticsEntry->app_id, + 'peak_connection_count' => $this->webSocketsStatisticsEntry->peak_connection_count, + 'websocket_message_count' => $this->webSocketsStatisticsEntry->websocket_message_count, + 'api_message_count' => $this->webSocketsStatisticsEntry->api_message_count, ]; }