Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response.addListener('drain', function(){
- //console.log('drain');
- test.resume();
- });
- test.addListener("data", function(chunk){
- if( !response.write(chunk,'binary') ){
- test.pause();
- }
- //response.write(chunk,'binary');
- //console.log('data');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement