shawnyv's avatar
Level 13

Reverb Setup in Secure Application

Does anybody know of any articles/tutorials on Reverb that aren't just setting up toy applications on fresh installs that don't have any security certificates?

I drove myself nuts yesterday trying to add it to an existing project.... Did a "toy" install today on a new project and had no issues, until I did a "valet secure", at which point it failed.

Then, after unsecuring it, it kept failing (which explains why it failed in my existing project yesterday).

I've read elsewhere that it's a nightmare to get it set up on Forge as well.

I'm sure there are some who've actually got it working, but I haven't been able to find anything online about it (and uncharacteristically for Laravel, the Reverb docs are pretty terrible at the moment in terms of actually getting it up and running outside the "toy/demo" application).

Would really appreciate any help / pointers in the right direction!

Thanks so much

0 likes
3 replies
shawnyv's avatar
shawnyv
OP
Best Answer
Level 13

Just found this which solved it for me:

https://github.com/laravel/reverb/pull/85

Specifically this bit - updating the reverb.php to include this:

            'options' => [
                'tls' => [
                    'verify_peer' => false,
                ],
            ],

Finally, ensuring that the reverb_host is the domain, the reverb_scheme is https, and the reverb_port is 8080.

Once all that was in place, running npm run build (or npm run dev) then restarting the reverb instance (php artisan reverb:start) had it working for me.

2 likes
najeeb-anwari's avatar

@shawnyv Hello, I also have same issue but the solution did not work for me. I get this error message. "WebSocket is closed before the connection is established."

Please or to participate in this conversation.