Why am I having trouble getting how socket.io works?