0.2.0 • Published 11 years ago

wsstream v0.2.0

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

wsstream

stream over websockets

only works in node v0.10

on the server

var WebSocketServer = require('ws').Server;
var WsStream = require('wsstream');
var server = new WebSocketServer({ port: 7981 });
server.on('connection', onConnection);
function onConnection(connection) {
  var wsstream = WsStream(connection);
  // .. stuff
  wsstream.close();
}

on the browser

use browserify

var WsStream = require('wsstream');
var stream = WsStream('ws://localhost:7981');
// .. stuff

check the test folder for details

0.2.0

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago