https socket server
Lot of thanks for the php http socket server client . But when i use https socket server the php client is not emiting message. What change need to be done for that..
remove http:// from $out.= "Host: http://$host:$port\r\n";
must be $out .= "Host: $host:$port\r\n";
and send to ssl $socketio->send('ssl://...
Unfortunately it doesnt seem to work for me. I have done everything by the book, changed code as suggested by Maiti but fwrite($fd, $out); just timing out (nodejs server bit works as I connect from browser just fine). I tried debugging on node server and its not showing anything at all when trying to connect to socket from PHP client. I apply certificates in node server code as follows: "
var options = { key: fs.readFileSync('./ssl/cert.pem'), cert: fs.readFileSync('./ssl/cert.crt') }; var server = https.createServer(options, app);
Thanks