On Monday, November 18, 2013 4:30:03 AM UTC-5, Floby wrote: > > My remark concerning the complexity of the examples is that setting up an > RPC link between to nodes involves a lot of steps > > - add methods > > You can add() an object or array of functions too.
> > - generate RPC shim > > This isn't required, you can use .send() directly if you wish. generate() is there for convenience. > > - connect to server > > This is just due to the nature of the module -- they're just generic (transform) streams. So in this way it's pretty much the same as dnode, minus dnode's 4 line listen() wrapper around net.createServer().listen() and 4 line connect() wrapper around net.connect(). IMHO calling net.createServer() or http.createServer() for example does not take much code/effort. If you think the examples are missing something in particular, I'm open to suggestions. > > - use shim > > Again, optional as noted previously if you use .send() directly. Dnode can also send functions as results, but maybe that's what you incluce > in non-JSON types. However it doesn't seem from the example that bellhop > can do it > Huh? I thought the first example in the readme already showcased this somewhat. In particular a Date object is passed from server to client and also a function is sent to the server and executed server-side (albeit within the same process for simplicity). Also I've taken a peek at more of dnode's code along with dnode-protocol and jsonify and cannot seem to find where it's sending non-JSON values such as functions over the wire. -- -- 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 --- 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]. For more options, visit https://groups.google.com/groups/opt_out.
