Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created August 4, 2012 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Raynos/3254631 to your computer and use it in GitHub Desktop.
Save Raynos/3254631 to your computer and use it in GitHub Desktop.
var pair = renderRoom(roomDiv, roomName, userName)
, write = pair[0]
, read = pair[1]
, duplex = es.duplex(write, read)
//write.pipe(roomStream).pipe(read) WRITE/READ WORKS
duplex.pipe(roomStream).pipe(duplex) // DUPLEX DOES NOTHING >:(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment