Light-weight notification mechanism with 3rd party subscription, like unverified newsletters.
- 📣 💼 💰 Looking for a tech job? Try our reverse recruiting service.
This module exports one function:
emit = makeEventPeddler()
Returns a function with a list of potential targets in its
emit(evName[, ...args]) to notify all targets that have a
'on' + evName.
nPot: Returns the current number (length) of
subscribeThese: Expects an array as argument. Adds all objects in that array to