title: Node.js emit to a specific listener
body: <p>It's possible emit to a specific listener in node.js?</p>
  
  <p>A example:</p>
  
  <p>emitter.js</p>
  
  <pre><code>var EventEmitter = require('events').EventEmitter;
  
  module.exports = function() {
  
      var controller = new EventEmitter();
  
      return {
  
          set: function(opts) {
              setTimeout(function() {
                  controller.emit('ok', opts);
              }, 10);
  
              return controller;
          },
  
          get: function(opts) {
              setTimeout(function() {
                  controller.emit('ok', opts);
              }, 10);
  
              return controller;
          }
  
      };
  };
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>var express = require('express'),
      app = express(),
      server = require('http').createServer(app);
  
  server.listen(8080);
  
  var testEmitter = require('./emitter')();
  
  testEmitter.set('set').on('ok', function(resp) {
      console.log('set', resp);
  });
  
  testEmitter.get('get').on('ok', function(resp) {
      console.log('get', resp);
  });
  
  /*result*/
  
  //set set
  //get set
  //set get
  //get get
  </code></pre>
  
  <p>My idea is instead to emit for all listeners, I want to emit only for a specific listener.</p>
  
  <p>In other words, instead of having a result of</p>
  
  <pre><code>// set set
  // get set
  // set get
  // get get
  </code></pre>
  
  <p>I want to have this</p>
  
  <pre><code>// set set
  // get get
  </code></pre>
  
  <p>After spent some time to understand how the events work, I do not know how I can do this.</p>
  
  <p>Any idea?</p>