I was thinking about something like this on the server side:

rest-module.on('hello', function(req, res, data){
    res.send('Hello ' + data.world);
});

And on the client side:

$('#button').click(function(){
    var data = { world : 'world' };
    rest-module.emit('hello', data, function(res){
        console.log(res);
    });
});

Is there anything like that already? Tried node-restify, but that's not
quite simple as I wished.

Thank's!


-- 
--
Att,
Alan Hoffmeister

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