Replies: 4 comments 2 replies
|
The docs are clear about the Desktop entry point: I could not find a documented exception for a second |
|
The
If the second So my solution is starting the second BTW: There is no good way to create a child process to execute another script in the process of |
|
Some points: the second For the worker, since it's a new, isolated JS context, that PR has no effect in the worker. Using Using a low-level API like |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm trying out the features of Deno Desktop. Its entry point is a
Deno.serve(), which I'll call "the firstDeno.serve()" for convenience. As mentioned in the official documentation, it has some limitations:My application is an HTTP server that needs to be accessible from localhost or other devices on the local network at http://ip:port/. My solution is:
Deno.serve()is the UI for users to start/stop the secondDeno.serve()Deno.serve()is a local http serverI tested it, and this method works. The second server does not have the aforementioned network restrictions; it can be accessed from other device.
My question is will Deno desktop maintain this behavior? That is, only the entry point
Deno.serve()is restricted, and other subsequentDeno.serve()are not restricted.All reactions