Skip to content

loye/ws.stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

WebSocket steam based on ws

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published