Skip to content

Any way to stop the server or otherwise make it not crash on a page reload? #4

@BodoMinea

Description

@BodoMinea

Hi,

At some points in my app's execution, the page may be refreshed, causing the code to be re-run. This causes the plugin to loose connection with the underlying Java server and thus the cordova side of the server is not working anymore.

One solution would be to stop the server before refresh, so that when the pages reinitializes everything is „fresh”.

I see there was an attempt to make a „stop” function but it is not finished and commented out: https://github.com/jh3141/cordova-plugin-httpserver-dynamic/blob/master/plugin/www/dynamicHttpServer.js#L34

My knowledge of Java is limited and the project seems abandoned so I am addressing the potential community - does anyone know how to make the stop function work?

Thanks.

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