Laravel Reverb
Hi Guys,
Has anyone gotten Laravel Reverb to work on Laravel Forge? I know it is not Wave related but I am starting to run out of ideas here.
I followed the docs but I am getting the following in the console: WebSocket connection to 'wss://ws.yourserver:80/app/reverb_app_key?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed:
The error is not very descriptive on where the issue is.
Hey Brian!
Have you managed to get this to work yet?
Looking at the error that you've shared it looks like that the URL is trying to establish a WebSocket connection over port 80 (wss://ws.yourserver:80) but uses the secure wss
. Typically, WebSocket connections should use port 443 for wss (WebSocket Secure) or a specific port designated for WebSocket traffic.
If SSL is not required you can change this in the config/reverb.php
configuration file as described in the docs here:
https://laravel.com/docs/11.x/reverb#ssl
Eg:
'options' => [
'tls' => [],
],
Let me know if this works!
Hey Bobby,
Yeah, I managed to come right thanks.
The issue was related to the Laravel Forge settings I was testing out for deploying a server.
I think I owe you for a beer with the amount of times you have helped me out in general though. Appreciate you always willing to help!
















Hey!
No worries at all! Happy to help at any time 🍻