I am currently working in Chat app for a website built using Livewire, and for Real time communication, i decide to use laravel reverb, but for HTTP is work without problem, but when using HTTPS ( ssl using laragon ) an error occured , it's says that the server is closed before the connection is established
this is my configuration :
REVERB_APP_ID=<app_id>
REVERB_APP_KEY=<app_key>
REVERB_APP_SECRET=<app_ssecret>
REVERB_HOST="myapp.test"
REVERB_PORT=8080
REVERB_SCHEME=https
and in bootstrap.js
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,
wssPort: import.meta.env.VITE_REVERB_PORT,
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
enabledTransports: ['ws', 'wss'],
});
I have tried to put a local cert filr in configuration but nothing works.