Create socket.io route