bogdy's avatar
Level 10

Problem with Laravel Reverb and Forge

I have a Laravel application hosted on a server using Laravel Forge. I have integrated Laravel Reverb for real-time features, and everything works perfectly on my local environment. However, when deploying to the Forge server, I'm encountering issues.

in .env I have

REVERB_APP_ID=xxx
REVERB_APP_KEY=xxx
REVERB_APP_SECRET=xxxx
REVERB_HOST=ws.domain.com
REVERB_PORT=443
REVERB_SCHEME=https

I'm unsure about what values should be filled in for REVERB_APP_ID and REVERB_APP_SECRET. In the console, I'm receiving the following error: Firefox can't establish a connection to the server at wss://https//domain.com:8080/app/?protocol=7&client=js&version=8.4.0-rc2&flash=false

I try this tutorial, restart server etc but dont work https://tonymasek.com/blog/how-to-make-laravel-reverb-work-on-laravel-forge

does anyone have an idea, can you give me a tip. thanks in advance

0 likes
3 replies
michaelconnelly's avatar

Random secure values should do the job for those values

Couple of things to try that a combination of ended up fixing a similar issue for me:

Rebuilding JS assets

Enable reverb, setup your SSL cert, then disable and reenable Reverb again - not sure where i saw this one but it ended up being the thing that sorted it in the end

1 like
michaelericsson's avatar

@michaelconnelly after I don't know how many hours, I found this advice to disable and reenable Reverb AFTER the setup of the SSL - and it worked!! Many thanks

Rockblings's avatar

I have similar issue, i have tried all the suggested solutions. it worked a bit and stop working again. i have been unable to get to broadcast the message. it shows that it is connected but it is not broadcasting.

Please or to participate in this conversation.