Tell me, please, how to organize a correct transport data from PHP to Node.js?
I tried to use the library dNode, but it does not work in conjunction with socket.io.
Example:
io.sockets.on('connection', function(socket) {
var server = dnode({
setMeta: function(data, callback) {
// not working
}
});
server.listen(dPort);
});
Advise the alternative?
To send data from PHP to NodeJS can use the following:
More info here.
In app.js
I hope that is helpful.