reverse routing websocket in template