Tuesday 29 December 2015

Issue with nodejs / Socket.io

i can't use this string get from my socket server{ "name": "HTCVIVE", "text": "azerty" }Can't Parse it or use it ? halp ?my socket serversck.createServer(function(socket) { socket.on('data', function(data) { var string = (data.toString()); io.emit('console', string); }); }).listen(5000, 'localhost');

Submitted December 30, 2015 at 04:50AM by DoneurCreations

No comments:

Post a Comment