pocesar/node-jsonrpc2

Retrive the path of HTTP request

docgibbo opened this issue · 1 comments

We have installed json-rpc2 module on our Nodejs server running on the port 3002.
We have written a json-rpc method, called "/uplink", exposed by our server.
On the same machine we have installed a ngnix service and configured it as a server proxy, example: /appserver is resolved on localhost:3002.
We would like read the path of the HTTP URL (/appserver/uplink) inside our "/uplink" method: how can do it? We have seen in opt param that there is this string, but we don't understand how get it with a js instruction.

thanks

we have find the URL in opt.req.url

thanks