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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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