0.0.3 • Published 2 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-gcdwebserver
Or:
$ cordova plugins add https://github.com/xulihang/cordova-plugin-gcdwebserver.git
Methods
startServer
Start the HTTP server. You can specify the port and the folder path.
cordova.plugins.GCDServer.startServer({port:8080, folder:"www"},successCallback,errorCallback);
stopServer
Stop the HTTP server.
cordova.plugins.GCDServer.stopServer("",successCallback,errorCallback);