Skip to content

Commit

Permalink
Config options for polling
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebarlow committed Sep 4, 2024
1 parent a6fef1f commit a49fa19
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions config/megaphone.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@
* show a dot instead
*/
'showCount' => true,

/*
* "Live Component" - Will auto-update the component when new notifications appear
* Possible options: "off", "poll"
*/
'liveComponent' => 'off',

/*
* Live Component "poll" configuration options.
* @link https://livewire.laravel.com/docs/wire-poll
*/
'poll' => [
'time' => '15s',
'keepAlive' => false,
'viewportVisible' => false,
],
];

0 comments on commit a49fa19

Please sign in to comment.