1.0.10 • Published 8 years ago

@penggy/wsc v1.0.10

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

@penggy/wsc

Websocket client implementation for auto reconnect. copy from here

Install

npm i @penggy/wsc

Write a simple client:

var wsc = new WebSocketClient();
wsc.open('wss://localhost:443/');
wsc.onopen = function(e){
	console.log("WebSocketClient connected:",e);
	this.send("Hello World !");
}
wsc.onmessage = function(data,flags,number){
	console.log(`WebSocketClient message #${number}: `,data);
}
1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago