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]
Bu iş için 5 freelancer ortalamada $28 teklif veriyor
Hi, I have reviewed your requirement and i find this quite interesting, our site is: [url removed, login to view] will provide quick and perfect solution for your all type of technical issues/requirement Relevant Skills Daha Fazla
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.
i can do this using Apache, in my experience nginx provide a better reliability when it comes to web sockets. but it's your choice which one you want to use. Relevant Skills and Experience i have done similar project Daha Fazla
I have experience with similar setup using Apache 2.4, mod_proxy, mod_wstunnel using multiple backend instances where websocket needs to be proxied. Relevant Skills and Experience Apache Ubuntu WebSockets wstunnel, mo Daha Fazla