var myapp = require('myapp.js');
var Domain1 = myapp.domain1;
var Domain2 = myapp.domain2;
Domain1.endpoint(args); //or something to this effect
Domain2.endpoint(args);
Apologies since I know this is sort of a broad question, but I'm fairly new with Node and trying to wrap my helload around some best practices. I come from a java/scala background and while learning a new language, I typically like to look at existing libraries to get some knowledge and understanding.
I suggest you take a look at Google API node module, it's basically what you are trying to achieve.
--
Adrien Risser,
Node.js Consultant
+33 6 59 60 32 58
--
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 nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/9c94bbe3-2821-4f02-bb72-8a384a3acbd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.