title: Is it safe to listen to an event AFTER registering it?
body: <p>I'm new to NodeJS, and I'm learning how it works with streams.
  Reading a book I found this sample code:</p>
  
  <pre><code>var CountStream = require('./countstream');
  var countStream = new CountStream('book');
  var http = require('http');
  
  http.get('http://www.manning.com', function(res) {
      res.pipe(countStream);
  });
  
  countStream.on('total', function(count) {
      console.log();
  });
  </code></pre>
  
  <p>In this code snippet we're calling <code>http.get</code> method and then waiting for the callback (<strong>Part 1</strong>). </p>
  
  <p>On the next line we're listening for <code>total</code> event (<strong>Part 2</strong>).</p>
  
  <p><strong>Question:</strong> What if a delay happens between Part 1 and Part 2, so the Part 1's callback executes first (before Part 2 starts listening to  to <code>total</code> event. Is it true that the first chunk(s) of data will be lost?</p>