Working example on socket.io communication