Real time with Reverb
Out of the box, browsers poll every 0.4 seconds while working together, and less often when alone, idle or in a crowd. That needs nothing but your Laravel app.
With broadcasting, the server pushes each change as it happens. A keystroke reaches others in about 60 ms instead of 350 ms, and browsers poll only every 8 seconds as a safety net.
1. Install Reverb and start it:
php artisan install:broadcasting --reverb
php artisan reverb:start2. Give Filament an Echo connection. Publish its config with php artisan vendor:publish --tag=filament-config, then in config/filament.php:
'broadcasting' => [
'echo' => [
'broadcaster' => 'reverb',
'key' => env('REVERB_APP_KEY'),
'wsHost' => env('REVERB_HOST'),
'wsPort' => env('REVERB_PORT'),
'wssPort' => env('REVERB_PORT'),
'forceTLS' => env('REVERB_SCHEME', 'https') === 'https',
'enabledTransports' => ['ws', 'wss'],
'authEndpoint' => '/broadcasting/auth',
],
],3. Turn it on:
CollaborationPlugin::make()->broadcasting();
// or only where Reverb is configured:
CollaborationPlugin::make()->broadcasting(fn (): bool => config('broadcasting.default') === 'reverb');Any Pusher-compatible broadcaster works the same way.
Edits are still sent over HTTP, where each one is authorised and validated; only the answers come over the socket. Each tab listens on a private channel for its room and the fields it may read, and the channel only admits people who have a tab there. If Reverb goes down, nothing breaks: browsers fall back to polling.