On Thu, Mar 22, 2012 at 16:08, C. Mundi <[email protected]> wrote:
> Glad you asked.  I mean the node user-space events that we connect to with
> listeners, like emitted.on('eventname',...).  What I'd like is a tool which
> can snoop by walking the whole queue for 'eventname' without dequeuing any
> events.  The tool would have to be integrated with V8 I think because I want
> to see events added and removed in "realtime"

EventEmitter is synchronous, there is no queue. One end emits an event
and the other end receives it immediately. It's the observer design
pattern under a different name, really.

If you only want to retrieve the list of listeners, call
`.listeners('eventName')`.

-- 
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

Reply via email to