Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bdawg's avatar

101 Switching Protocol

Hi yall,

I've been struggling with putting my laravel websitr on prod. Im using reverb for websockets (duh) and on dev it works fine, however on prod it does:

101 Switching Protocol

Basically it connects and disconnects sockets constanly. websocket connection cycling.

Using nginx here and i can't find a solution! I backtracked my .env but couldnt find a solution, also copied a working nginx conf but to no avail.

If anyone know how to solve this i would be happy to get some feedback, thanks!

1 like
1 reply
bdawg's avatar

Update: Figured out that 101 isn't quite bad. But the loop of making new connections is. This is due to my supervisor spawning new instances of reverb:start if they quit.

However I still didn't figure out WHY reverb:start quits without throwing errors or anything

1 like

Please or to participate in this conversation.