You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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”.
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.
The text was updated successfully, but these errors were encountered:
I implemented the server stop function in my own fork - https://github.com/BodoMinea/cordova-plugin-httpserver-dynamic
The command is cordova.plugins.dynamicHttpServer.stopServer(serverId, successCallback, errorCallback);
Install with cordova plugin add 'https://gitpkg.now.sh/BodoMinea/cordova-plugin-httpserver-dynamic/plugin?master' or clone and install locally.
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.
The text was updated successfully, but these errors were encountered: