This guide explains how to connect to and listen for real-time events using Laravel Echo and Reverb.
9080
is required.import Echo from 'laravel-echo';
window.Echo = new Echo({
broadcaster: 'reverb',
key: 'your-key',
host: 'ws://dambel.io:9080',
authEndpoint: '/broadcasting/auth',
auth: {
headers: {
Authorization: `Bearer YOUR_AUTH_TOKEN`
}
}
});
private-App.Models.User.{id}
: Users receive:
ChatAdded
, ChatRemoved
, ChatUpdated
private-App.Models.Chats.Chat.{id}
: Users receive chat-specific events:
MessageSent
, MessageUpdated
, MessageDeleted