0.0.3 • Published 3 years ago
cordova-plugin-gcdwebserver v0.0.3
cordova-plugin-gcdwebserver
Cordova plugin of GCDWebServer which can be used to serve static files.
Supported Platforms
iOS
How to use
Install the plugin
$ cordova plugins add cordova-plugin-gcdwebserverOr:
$ cordova plugins add https://github.com/xulihang/cordova-plugin-gcdwebserver.gitMethods
startServerStart the HTTP server. You can specify the port and the folder path.
cordova.plugins.GCDServer.startServer({port:8080, folder:"www"},successCallback,errorCallback);stopServerStop the HTTP server.
cordova.plugins.GCDServer.stopServer("",successCallback,errorCallback);