Skip to content

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

@digaus

Description

@digaus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions