I used Ratchet for websocket server in php.
I got new domain and run the socket server
php artisan websocket:init.
It seems to work now.
But I can't connect to the socket server in frontend.
I am looking for socket expert. If you are expert it would take less than 20 mins