-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple servers? #94
Comments
@jtreat3 :Have you solved this issue? |
@jtreat3 In case if you have not solved this issue or anyone else... |
I thought I had stored it as a local variable, but it was too long ago to remember. |
This package doesn't support multiple servers. The
calling start multiple times is not supported: if(_webServer.isRunning != NO) {
NSLog(@"StaticServer already running at %@", self.url);
resolve(self.url);
return;
} The exposed javascript API is confusing, making you believe you can instantiate multiple server instances. This is not the case. You will get the same server when you call I wish we were exposed only the FPStaticServer API. The javascript API is misleading. |
I am wondering why the _webServer is designed to be a singleton? Any platform restriction on iOS? |
with the latest [email protected] it builds, and works, at least in the dev mode.
Thanks for this server. Great work!
I'm wondering if it's possible to run two servers at once.
So far, it looks like if I try, even though the port property of each instance is different and correct, the url returned upon starting both uses only the first port, and it seems like nothing is actually served to the second port.
My goal with two servers is to be able to serve both the assets bundled in my app as well as assets saved by the app (which seemingly must be stored in another location).
Thanks.
The text was updated successfully, but these errors were encountered: