'How can I configure Laravel websocket on digitalocean nginx without 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.

My app is hosted on digital ocean

Your help would be appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source