nw.js intercept all http request

75 views
Skip to first unread message

Patrick O'Neil

unread,
Nov 6, 2023, 3:24:20 PM11/6/23
to nw.js
I have a client server app that's running now with limited server interactions and would like to make a version that runs on client only without changing the existing client code.   I would like to trap all server request and redirect them to  node javascriipt code. This would have nw.js effectively replacing the server scripts with node code.

Is this possible and if so, what do I need to do to make this happen.

Roger Wang

unread,
Nov 7, 2023, 12:01:39 PM11/7/23
to Patrick O'Neil, nw.js
chrome.webRequest API could do this. It is supported by NW:


On Mon, Nov 6, 2023 at 12:24 PM Patrick O'Neil <onei...@gmail.com> wrote:
I have a client server app that's running now with limited server interactions and would like to make a version that runs on client only without changing the existing client code.   I would like to trap all server request and redirect them to  node javascriipt code. This would have nw.js effectively replacing the server scripts with node code.

Is this possible and if so, what do I need to do to make this happen.

--
You received this message because you are subscribed to the Google Groups "nw.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nwjs-general...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nwjs-general/9c61c100-2317-4432-8850-4c367c889e12n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages