API1 with Node.js and socket.io library