Hmm.. it's probably not clear because I don't fully understand what I'm 
doing :) Let me try a different approach. How would I package the below 
code up into a single stream? (or is that not what you mean?)

server.on('put', function (event, callback) {
  coordinator.put(event, callback);
});

peerServer.on('_put', function (key, event, callback) {
  storage._put(key, event, callback);
});

coordinator.on('_put', function (peer, key, event, callback) {
  peerClient._put({hostname: peer.hostname}, key, event, callback);
});

On Monday, October 28, 2013 10:32:52 PM UTC-5, Sam Roberts wrote:
>
> On Mon, Oct 28, 2013 at 10:37 AM, Tristan Slominski 
> <[email protected] <javascript:>> wrote: 
> > The problem I'm solving is controllability of the "when" interdependent 
> > event emitters are connected and when they are disconnected. These are 
> meant 
> > purely as control structures. 
>
> Still not clear. Looks like a clunky replacement for streams. 
>
> Sam 
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to