Setup Details:
- Reverb: v1.4.3
- Laravel: v11.33.x
- PHP: v8.3.1
- Reverb running on port 8001
- Laravel API on port 8080
- React dev server on port 5173
- Auth endpoint: http://localhost:8001/api/broadcasting/auth
Problem:
I have a React TypeScript frontend using Laravel Echo to connect to a separate Laravel backend API. The Reverb connection gets established successfully and channels are being subscribed to without authentication issues.
However, when I dispatch events from the Laravel backend, my React frontend never receives them. This happens with both private and public channels. The Reverb debug console only shows ping messages like this:
Message Received
{
"event": "pusher:ping",
"data": []
}
What I’ve tried:
- Set up Laravel Reverb on the backend
- Added channel authorization rules in routes/channels.php
- Started Reverb with:
php artisan reverb:start --host=127.0.0.1 --port=8001 --debug
- Configured Laravel Echo in React app
- Tested listening on private channels
Any guidance on proper setup would be appreciated, including a complete configuration walkthrough if possible.