On VPS IoServer works (HttpServer -> WsServer) Doesnt
$server = IoServer::factory(
            new HttpServer(
                new WsServer(
                    new Chat()
                )
            ),
            9005,
            '0.0.0.0'
        );
        $server->run();

I wrote the following proxy. To add upgrade headers. I can see the raw headers when I run Ratchet only using IoServer::factory. So I know my request reaches the code.  Once I add the HttpServer->WsServer code It no longer works. Port opens and is listening but websocket client will not connect.

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/wss [NC]
RequestHeader set Connection "Upgrade"
RequestHeader set Upgrade "websocket"
RewriteRule /wss/(.*) wss://127.0.0.1:9005/$1 [P,L]
