1.0.10 • Published 7 years ago

@penggy/wsc v1.0.10

Weekly downloads
1
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago