Installed a php script which uses Websockets (Ratchet).
Since Chrome 47 a camera/mic access is allowed only over https. For that reason you will be forced to use HTTPS protocol only. (I am!)
Further, if you use HTTPS for your website, browser will not allow any other non-secure communication. So websocket communication must be secure as well, it must use wss instead of ws protocol.
However, The server part of the system itself cannot run wss (ws over ssl) for websockets, though there are possible 3rd party work-arounds with proxies. You should already make sure you will be able to apply one of them. (I don't know!)
If you are already using Apache (I am!) , the easiest way might be to use it as a proxy. In order to achieve this you can enable Apache's proxy_wstunnel (sudo a2enmod proxy_wstunnel). In your domain .conf file (the actual file might vary on different OS) you can add, usually next to where you ssl certificate is defined:
ProxyPass /wss/ ws://[url removed, login to view]
5 freelancers are bidding on average $28 for this job
Hey, I'm interested in your project. I'm individual freelancer with 5year experience. I'm always available here .so Please send me a message so that we can discuss more.