WhatsApp Manager Webhook Documentation |
View on GitHub
π‘ Real-Time Events
Introduction
The real-time event system allows your application to instantly react to WhatsApp interactions using WebSockets. With Laravel Reverb and Laravel Echo integration, you can receive instant notifications about incoming messages, status updates, template events, and more, creating highly interactive and responsive user experiences.
Key benefits:
- Instant notifications without polling
- Real-time UI updates
- Lower latency for better user experience
- Seamless integration with Laravel ecosystem
- Support for public and private channels
π Table of Contents
-
Laravel Reverb Setup
- Installation
- Server configuration
- Environment variables
-
Laravel Echo Setup
- Frontend dependencies
- Frontend configuration
- Vite environment variables
-
Supported Events
- Messages
- Statuses
- Templates
- Interactions
-
Listening to Events
- Channel configuration
- Frontend examples
- Testing with Tinker
-
Best Practices
- Channel security
- Error handling
- Performance optimization
π¦ Laravel Reverb Installation
1. Install Laravel Reverb via Composer
In a new terminal, run:
composer require laravel/reverb