Socket.io 1.0 is going to directly address that limitation. Instead of trying to establish the best possible connection first, it will start with the most reliable connection and upgrade to websockets if it can.
Daniel Shaw @dshaw On Thu, May 31, 2012 at 11:33 AM, Alan Hoffmeister <[email protected]> wrote: > I wish I could say: "Let's rock'n websockets!", but I had bad experiences > using socket.io behind firewalls.. That's why I'm fallbacking to RPC... > > -- > Att, > Alan Hoffmeister > > > > 2012/5/31 tjholowaychuk <[email protected]> >> >> raw socket.io is more than enough IMHO >> >> On Apr 11, 7: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 -- 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
