We should add SSL Support in the server (with SSL feature in socket reactphp package). We could work with these flags * --ssl-enabled * --ssl-local-cert * --ssl-passphrase * --ssl-crypto-method We should add as well a force-ssl flag with a redirection when is needed * --force-ssl