Router to use with socket.io