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

Commit

Permalink
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/websockets.php
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@
* The Statistics Logger will, by default, handle the incoming statistics, store them
* and then release them into the database on each interval defined below.
*/
'logger' => \BeyondCode\LaravelWebSockets\Statistics\Logger::class,
'logger' => BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class,

/*
* Here you can specify the interval in seconds at which statistics should be logged.
2 changes: 1 addition & 1 deletion src/Console/StartWebSocketServer.php
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ protected function configureStatisticsLogger()
$browser = new Browser($this->loop, $connector);

app()->singleton(StatisticsLoggerInterface::class, function () use ($browser) {
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger::class);
$class = config('websockets.statistics.logger', \BeyondCode\LaravelWebSockets\Statistics\Logger\HttpStatisticsLogger::class);

return new $class(app(ChannelManager::class), $browser);
});

0 comments on commit 679a8d0

Please sign in to comment.