PHP_SocketIO_Client icon indicating copy to clipboard operation
PHP_SocketIO_Client copied to clipboard

https socket server

Open rasta3572 opened this issue 9 years ago • 2 comments

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..

rasta3572 avatar Oct 17 '16 07:10 rasta3572

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://...

Boityakov avatar Nov 07 '16 10:11 Boityakov

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

theromych avatar Nov 24 '17 06:11 theromych