0.1.2 • Published 11 years ago

ws.stream v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
11 years ago

ws.stream

WebSocket steam based on ws.

How to use

Install by $ npm install ws.stream

###Example:

//echo server
var wss = require('ws.stream');
wss.listen({ port: 1337 }, function (s) {
  s.pipe(s);
});
//client for testing echo server
var wss = require('ws.stream');
wss.connect('ws://localhost:1337').on('connect', function (s) {
  process.stdin.pipe(s).pipe(process.stdout);
});
0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago