Here is my code, now. https://gist.github.com/5930f29e452287b69252/c3736b153bde9c3d4dc10307342d32f23d4da537
On Fri, Nov 2, 2012 at 6:47 PM, Tom <[email protected]> wrote: > Hello. > > Wanting to start to use EventEmitters in my code I thought it would be a > nice idea if I would abstract a Website class (that holds an express app > and http server for now) so I can tell it to start and stop with events and > know when it is done by receiving events. > The thing I'm not sure about is How to connect two EventEmitter instances, > say a Website and a Logger or an Authenticator 'middleware' or something > that routes HTTP requests by domain to Website objects, etc. > > Does anyone have examples of code that I could look at? > > Also, would it be possible, later, to separate parts out and have them > emit their events over streams to each other in the network? > > gr, > > Tom > -- 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
