Have a look at Hook.io ( https://github.com/hookio ) and Hook.io-restful ( https://github.com/jdarling/hook.io-restful ). Might just suite your needs. Note that Hook.io 0.9 will introduce some type of balancing mechanic that doesn't currently exist today. Restful may be a bit out of date, but I have the updated version ready if you find a need (just haven't had time to setup GIT and do the push on this new machine).
- Jeremy On Wed, Apr 11, 2012 at 9:58 AM, Alan Hoffmeister <[email protected] > wrote: > 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 > -- 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
