socket.io example code fixed