diff --git a/config/reverb.php b/config/reverb.php index dacacf3d..4419240e 100644 --- a/config/reverb.php +++ b/config/reverb.php @@ -71,7 +71,7 @@ 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'allowed_origins' => ['*'], - 'ping_interval' => env('REVERB_APP_PING_INTERVAL', 5), + 'ping_interval' => env('REVERB_APP_PING_INTERVAL', 60), 'max_message_size' => env('REVERB_APP_MAX_MESSAGE_SIZE', 10000), ], ], diff --git a/src/Servers/Reverb/Console/Commands/StartServer.php b/src/Servers/Reverb/Console/Commands/StartServer.php index 5768699d..cc45babe 100644 --- a/src/Servers/Reverb/Console/Commands/StartServer.php +++ b/src/Servers/Reverb/Console/Commands/StartServer.php @@ -57,7 +57,7 @@ public function handle(): void */ protected function scheduleCleanup(LoopInterface $loop): void { - $loop->addPeriodicTimer(300, function () { + $loop->addPeriodicTimer(60, function () { PruneStaleConnections::dispatch(); PingInactiveConnections::dispatch();