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?