0.2.2 • Published 5 years ago

glue-ws v0.2.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

glue-ws

Minimalistic framework for websocket applications

Setup

glue-ws requires setup on both the server and the client.

Server

After installing the npm module, this is the most basic code to set up a listening server

var glue = require("glue-ws");
var network = new glue.Server();
network.start(8443);

network.onConnect = function() {
	console.log("client has connected.");
}
network.onDisconnect = function() {
	console.log("client has disconnected");
}

Client

The client for glue-ws can be found on the github repository. After including the client in your code you can set up a connection to a server running glue-ws with this code:

var client = new GlueClient();
client.init("ws://127.0.0.1:8443");
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago