cordova-plugin-gcdwebserver
v0.0.3
Published
Cordova plugin for GCDWebServer
Downloads
8
Maintainers
Readme
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);