Skip to content

Commit

Permalink
update ping interval
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Dec 7, 2023
1 parent 619ff08 commit 34332f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/reverb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
],
],
Expand Down
2 changes: 1 addition & 1 deletion src/Servers/Reverb/Console/Commands/StartServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 34332f1

Please sign in to comment.