Question

How to setup Laravel websocket without using Laravel Forge

So, I have a real time app which is working fine locally, but moving it to production I realize the real time feature is no longer working mainly because of Laravel websocket error: “WebSocket is closed before the connection is established.”

"WebSocket connection to ‘wss://mirrorlog.com/app/*******?protocol=7&client=js&version=7.0.6&flash=false’ failed: "

I’ve been making lots of research about this, but most are just referring to forge.

Your help would be appreciated


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 5, 2022

Hi there,

Seems like that the WebSockets service might not be running. I recently wrote a tutorial on how to setup Laravel Websockets without using Forge here:

Laravel WebSockets

Let me know if you have any questions!

Best,

Bobby

Bobby Iliev
Site Moderator
Site Moderator badge
July 5, 2022

Hi there,

I recently wrote a tutorial on how to use Laravel Websockets without Laravel Forge:

How to use Laravel WebSockets

Let me know if you have any questions!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up