Skip to content

Instantly share code, notes, and snippets.

@fxlemire
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('http://127.0.0.1:3000/');
console.log('fetching...');
stream.on('response', response => {
console.log('got response');
View keybase.md

Keybase proof

I hereby claim:

  • I am fxlemire on github.
  • I am fxlemire (https://keybase.io/fxlemire) on keybase.
  • I have a public key ASCDsxdAxS86l8ocLlXwGKL6baM6sGrTC4srB1L53A065go

To claim this, I am signing this object: