Skip to content
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

Wait for response to be finished and return possible error #56

Open
digaus opened this issue Mar 21, 2020 · 0 comments
Open

Wait for response to be finished and return possible error #56

digaus opened this issue Mar 21, 2020 · 0 comments

Comments

@digaus
Copy link

digaus commented Mar 21, 2020

Currently once the response is send we do not know when it is finished.

Wouldnt it be possible to pass the callback into the responses array and then call the success callback once it is finished?

Just pass callback here:

https://github.com/bykof/cordova-plugin-webserver/blob/master/src/android/Webserver.java#L105

and call here:

https://github.com/bykof/cordova-plugin-webserver/blob/master/src/android/NanoHTTPDWebserver.java#L250
https://github.com/bykof/cordova-plugin-webserver/blob/master/src/android/NanoHTTPDWebserver.java#L271

@digaus digaus changed the title Wait for response to be finished Wait for response to be finished and return possible error Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant