You have this configuration.
REVERB_PORT=443 REVERB_SCHEME="http"
Didn't you forget to replace http by https ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am implementing laravel Reverb, my implementation working fine locally but when I try to run it in production I face this issue,
'wss://www.test.com:8080/app/tlpfokn3vgiegdadodrb?protocol=7&client=js&version=8.4.0-rc2&flash=false'
www.test.com This is dummy a domain because I can't disclose my correct domain.
I am using AWS ec-2 and the server is Apache.
My js code
import Echo from 'laravel-echo';
window.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 ?? 80, wssPort: import.meta.env.VITE_REVERB_PORT ?? 443, forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https', enabledTransports: ['ws', 'wss'], });
and this is .env config
REVERB_APP_ID=844456 REVERB_APP_KEY=tlfgokn3vgiegdadodrb REVERB_APP_SECRET=d7aj3ghjdfyjkeyncpf7qp
REVERB_HOST="www.test.com" REVERB_PORT=443 REVERB_SCHEME="http" REVERB_SERVER="reverb"
REVERB_SERVER_HOST="0.0.0.0" REVERB_SERVER_PORT=8080
BROADCAST_CONNECTION=reverb QUEUE_CONNECTION=sync
MessageEvent.php file
Please or to participate in this conversation.