socket.io responding to server