description of how to issue command through socket.io should read: socket.emit('command',myCommand); not socket.emit('message',myCommand); (I think)