method
domain.Domain.add
add(
): void;
Explicitly adds an emitter to the domain. If any event handlers called by the emitter throw an error, or if the emitter emits an 'error' event, it will be routed to the domain's 'error' event, just like with implicit binding.
If the EventEmitter was already bound to a domain, it is removed from that one, and bound to this one instead.
@param emitter
emitter to be added to the domain