Skip to content

Instantly share code, notes, and snippets.

@chilts
Created April 27, 2012 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilts/2505347 to your computer and use it in GitHub Desktop.
Save chilts/2505347 to your computer and use it in GitHub Desktop.
All the Streams!
// instead of ...
var writestream = new stream.Stream()
writestream.writable = true
var readstream = new stream.Stream()
readstream.readable = true
// wish we could do
var writestream = new stream.WritableStream()
var readstream = new stream.ReadableStream()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment