tab-stream

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tab-stream

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • nopersonsmodules