I have a ratchet chat server file
use Ratchet\\Server\\IoServer; use Ratchet\\WebSocket\\WsServer; use MyAppChat\\Chat; require dirname(__DIR__) . \'/vendor/
The problem is that React (which Ratchet is built on) does not support direct SSL connections. See this issue.
There is a simple workaround. Use stunnel with a config like:
[websockets] accept = 8443 connect = 8888
Stunnel will handle SSL traffic on port 8443 and port them to your websocket server.