diff --git a/src/Channels/Channel.php b/src/Channels/Channel.php index 5387ed8f..2d1fdc0d 100644 --- a/src/Channels/Channel.php +++ b/src/Channels/Channel.php @@ -92,9 +92,12 @@ public function broadcastToAll(array $payload): void { $message = json_encode($payload); + $total = count($this->connections); + $start = microtime(true); foreach ($this->connections as $connection) { $connection->send($message); } + info('Broadcasted to ' . $total . ' connections in ' . (microtime(true) - $start) . ' seconds'); } /**