Skip to content

Instantly share code, notes, and snippets.

fxlemire / client.js
Last active Jun 17, 2019
Node.js Playing With Streams (stream.pause)
View client.js
// This is a quick gist to validate that data transmitted when a response stream is paused is not lost
const request = require('request');
const stream = request.get('');
stream.on('response', response => {
console.log('got response');

Keybase proof

I hereby claim:

  • I am fxlemire on github.
  • I am fxlemire ( on keybase.
  • I have a public key ASCDsxdAxS86l8ocLlXwGKL6baM6sGrTC4srB1L53A065go

To claim this, I am signing this object: