Pablo Escobar is the official socket server for ActiveEngagement applications. This demo is a guide for how to configure and setup a new application to use the Pablo socket server.
composer require laravel/reverb
php artisan reverb:install
pnpm i pusher-js laravel-echo
REVERB_HOST=ws-staging-pablo.actengage.com REVERB_PORT=443 REVERB_SCHEME=https REVERB_APP_ID=YOUR_APP_ID REVERB_APP_KEY=YOUR_APP_KEY REVERB_APP_SECRET=YOUR_APP_SECRET
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';
window.Pusher = Pusher;
const echo = new Echo({
broadcaster: 'reverb',
key: import.meta.env.VITE_REVERB_APP_KEY,
wsHost: import.meta.env.VITE_REVERB_HOST,
wsPort: import.meta.env.VITE_REVERB_PORT,
wssPort: import.meta.env.VITE_REVERB_PORT,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
enabledTransports: ['ws', 'wss'],
});
You may optionally assign this to window.Echo, if you are using Livewire for example.