Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-ghost3a

yangfanyu395GPL-3.03.2.2

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

node, lightweight, web server, websocket server, websocket client, web, server, client, cluster

readme

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.1.29

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

API document

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

changelog

3.2.2

  • Upgrade dependencies.

3.2.1

  • Upgrade dependencies.

3.1.29

  • Modify nodejs server framework.

3.1.28

  • Add switch for client to control automatic reconnection

3.1.27

  • Reduce crypto version to 2.1.3 for dart client

    3.1.26

  • Fix bug of dart client

3.0.56

  • Upgrade dependency libraries

3.0.54

  • Add md5 method.

3.0.53

  • Fixed a bug for dart client.

3.0.52

  • Initial version.