--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,Haven't tried it but it might work: use local IP address instead of local host, and run express on a port other than 80. Then in your nw app use child process to start the express server so it runs outside of nw.I've meet a need to implement this remote debug scene:[Debugger (node-webkit)] -- [Communicate Server (like a chatting room)] -- [Debuggee (Mobile App)]
- The Debugger and Communicate Server should be a single .exe on PC.
- The Debugger call RESTful API of Communicate Server, which redirected to Debuggee (Mobile App) by socket.io.
- Why I choose RESTful API on Debugger side is I need debugger thread to be blocked until the Debuggee side execution returns.
Though according to about node.js server side script in node webkit, it's not recommend to setup an express server in node-webkit, but I need to setup a express in order to provide some "blocking" restful services. These are what I've done:Use node-webkit to load a local.html.
- In local.html, use "require()" to start an express server.
- If I use ajax to request RESTful service http://localhost/xxx from local file, I'll meet Cross-Domain problem.
- If I use window.location =, the page reloads, and the express server will stop.
So I'm stuck on Step 2. or 3.. Is there any way to achieve this?
Laszlo--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "node-webkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-webkit/g2iVPNSetSM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-webkit...@googlegroups.com.
Hi,On Mon, Apr 28, 2014 at 4:15 AM, Laszlo Z. Antal <lza...@gmail.com> wrote:
Hi,Haven't tried it but it might work: use local IP address instead of local host, and run express on a port other than 80. Then in your nw app use child process to start the express server so it runs outside of nw.I've meet a need to implement this remote debug scene:[Debugger (node-webkit)] -- [Communicate Server (like a chatting room)] -- [Debuggee (Mobile App)]
- The Debugger and Communicate Server should be a single .exe on PC.
- The Debugger call RESTful API of Communicate Server, which redirected to Debuggee (Mobile App) by socket.io.
- Why I choose RESTful API on Debugger side is I need debugger thread to be blocked until the Debuggee side execution returns.
Though according to about node.js server side script in node webkit, it's not recommend to setup an express server in node-webkit, but I need to setup a express in order to provide some "blocking" restful services. These are what I've done:Use node-webkit to load a local.html.
- In local.html, use "require()" to start an express server.
- If I use ajax to request RESTful service http://localhost/xxx from local file, I'll meet Cross-Domain problem.
- If I use window.location =, the page reloads, and the express server will stop.
So I'm stuck on Step 2. or 3.. Is there any way to achieve this?
Which technology should I use to create child process?
If I use local IP address, such as "127.0.0.1", the ajax request from local page inside nw should meet "Cross Domain XHR" problem :(