This commit is contained in:
Marcel Pociot 2018-12-04 01:05:18 +01:00
parent dd283c66d1
commit 51232d6653
1 changed files with 5 additions and 5 deletions

View File

@ -23,11 +23,11 @@ class StatisticsUpdated implements ShouldBroadcast
public function broadcastWith() public function broadcastWith()
{ {
return [ return [
'time' => $this->webSocketsStatisticsEntry->created_at->timestamp, 'time' => (string)$this->webSocketsStatisticsEntry->created_at,
'app_id' => $this->webSocketsStatisticsEntry->appId, 'app_id' => $this->webSocketsStatisticsEntry->app_id,
'peak_connection_count' => $this->webSocketsStatisticsEntry->peakConnectionCount, 'peak_connection_count' => $this->webSocketsStatisticsEntry->peak_connection_count,
'websocket_message_count' => $this->webSocketsStatisticsEntry->webSocketMessageCount, 'websocket_message_count' => $this->webSocketsStatisticsEntry->websocket_message_count,
'api_message_count' => $this->webSocketsStatisticsEntry->apiMessageCount, 'api_message_count' => $this->webSocketsStatisticsEntry->api_message_count,
]; ];
} }