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

Commit 51232d6

Browse files
committed
wip
1 parent dd283c6 commit 51232d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Statistics/Events/StatisticsUpdated.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public function __construct(WebSocketsStatisticsEntry $webSocketsStatisticsEntry
2323
public function broadcastWith()
2424
{
2525
return [
26-
'time' => $this->webSocketsStatisticsEntry->created_at->timestamp,
27-
'app_id' => $this->webSocketsStatisticsEntry->appId,
28-
'peak_connection_count' => $this->webSocketsStatisticsEntry->peakConnectionCount,
29-
'websocket_message_count' => $this->webSocketsStatisticsEntry->webSocketMessageCount,
30-
'api_message_count' => $this->webSocketsStatisticsEntry->apiMessageCount,
26+
'time' => (string)$this->webSocketsStatisticsEntry->created_at,
27+
'app_id' => $this->webSocketsStatisticsEntry->app_id,
28+
'peak_connection_count' => $this->webSocketsStatisticsEntry->peak_connection_count,
29+
'websocket_message_count' => $this->webSocketsStatisticsEntry->websocket_message_count,
30+
'api_message_count' => $this->webSocketsStatisticsEntry->api_message_count,
3131
];
3232
}
3333

0 commit comments

Comments
 (0)