I have a ratchet chat server file
use Ratchet\\Server\\IoServer; use Ratchet\\WebSocket\\WsServer; use MyAppChat\\Chat; require dirname(__DIR__) . \'/vendor/
Apache also worked for me, just add in domain conf:
ProxyPass /wss/ wss://127.0.0.1:8888/
Reload apache and then it's import to set wss in client side to include /wss/ location
wss://127.0.0.1/wss/