cordova-plugin-webserver
cordova-plugin-webserver copied to clipboard
Wait for response to be finished and return possible error
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