WebSocket connection failed
Websocket works only where the Ratchet client start command will run (to that specific browser).

For example,

If I open our web server terminal in my google chrome browser and run ratchet start command "**nohup php index.php Chat_server index**", then the websocket will works only in my google chrome browser and not for others(other browser or other pc).

Then again I go and run that command on another pc or browser, it works there.

So the issue is, WebSocket was not working globally once we have run that command on the production 