1.0.1 • Published 6 years ago

ghost3a v1.0.1

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
6 years ago

node-ghost3a

Lightweight, web server, websocket server, websocket client. Cluster support. Simple and easy to use.

https://github.com/yangfanyu/node-ghost3a

Install

PM2 management process is recommended:

npm install pm2 -g

Then install this framework in your project directory:

npm install node-ghost3a

Server and client example

git clone https://github.com/yangfanyu/node-ghost3a.git

cd node-ghost3a/example

pm2 start ecosystem.config.js --env development

Then browse http://localhost:8080/ in your modern browser.

You can use pm2 log to see the server logs.

Client for flutter or dart

Edit dependencies in pubspec.yaml

   dependencies:
     wssnet_ghost3a: ^3.0.52

API usage is the same as index.html in example.

API document

src_v2 is deprecated

See the source code comments in src_v3 for the framework. My notes are very detailed.