Able to map a path to a json response through a websocket