Hello everyone,

I need to be able to publish events from my C++ addon. This way, users of 
my nodejs addon will be notified in their JavaScript server-side script 
when they occur.

So, I guess I want to store all the javascript callbacks that are 
registered in a global map in my C++ addon. (of a member of an object)
Should I store them as a std::map<v8::Local<v8::Function> > ? What the 
right scope to use?

(see http://nodejs.org/docs/latest/api/addons.html#addons_callbacks)

Thanks!

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to