0.0.3 • Published 11 years ago

tab-stream v0.0.3

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

tab-stream

Create net style servers, connections between browser-tabs.

Using an ... ugly hack, messsages are sent between browser tabs/windows from the same domain.

Just pretend it's a net server unix socket...

Example

var tab = require('tab-stream')

tab.createServer(function (stream) {
  //SERVER
}).listen('socket')

//CLIENT
tab.connect('socket')

Instead of a numerical port, just pass a string. The idea is to make this as close to net as possible.

Also, see autonode

License

MIT

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago