Hey hey! ^^
I am currently making concepts for a new module, that will embed PHP into
nodejs so you can use it from a HTTP server, for instance. Thing is, I want to
make it a non-blocking API. So I was thinking about returning an Event emitter
with events for start, data, end and such. But is this even possible from
another thread?
-- Pseudo code.
var instance = new PHP({ini_setting: "value"});
instance.on("data", function(ch) { request.write(ch.toString("utf-8")); });
--
This is supposed to be sort-of modeled after child_process.spawn. What
posibilities do I have, to emit events across threads?
Kind regards, Ingwie.
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/F7F59E13-334B-407F-A445-A8AD13128677%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.