Closed soufian212 closed 3 months ago
Hey there,
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.
Thanks!
@soufian212 did you find a solution? I am running into the same issue, and been battling to find anything thats gets me further after 3 days of trying through SO, Discord, and forums.
Reverb Version
1.0.0-beta
Laravel Version
11.9
PHP Version
8.3
Description
Expected Behavior:
Laravel Echo should establish a secure WebSocket connection (wss) to the Reverb server when using HTTPS.
Actual Behavior:
WebSocket connection fails on HTTPS with the error "WebSocket connection to 'wss://domain' failed: WebSocket is closed before the connection is established." The connection works successfully on HTTP.
I tried to add this on reverb.php config file
but I'm still getting this error
WebSocket connection to 'wss://domain' failed: WebSocket is closed before the connection is established.
my .env
Steps To Reproduce
Configure Laravel Echo with the Reverb server address and credentials (broadcaster set to reverb). Set forceTLS to true in the Echo configuration. Run the application with HTTPS enabled. Observe the error message in the browser developer console.