Created
July 9, 2015 05:12
-
-
Save lightsofapollo/b3ed7740b27b20108c96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var readable = getReadableStreamSomehow(); | |
readable.on('readable', function() { | |
var chunk; | |
while (null !== (chunk = readable.read())) { | |
console.log('got %d bytes of data', chunk.length); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment