cordova-plugin-gcdwebserver

0.0.3 • Public • Published

cordova-plugin-gcdwebserver

version

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);

Package Sidebar

Install

npm i cordova-plugin-gcdwebserver

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

5.82 kB

Total Files

6

Last publish

Collaborators

  • xulihang