Tom
unread,Nov 2, 2012, 1:47:43 PM11/2/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nod...@googlegroups.com
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