views:

53

answers:

1

This is the node-chat I'm inquiring about: http://github.com/scottgonzalez/node-chat

How are the messages being passed to the server?

websocket comet ajax?

How does it work?

Is what it's using scalable?

Thanks.

+2  A: 
  • it uses node.js running as a specialized http-server, reacting via a REST-like API to requests, delivering json.
  • the client is a jquery enhanced "website" which polls its information from the server via jquery.ajax() (the json-chunks could be fetched via jQuery.getJSON() as well [just normal http fetch]).
  • since it is just a little show-off i doubt it is "scalable" in terms of "distribute this like hell over thousands of machines to handle millions of users".
akira
thanks, just to clarify, it uses ajax to poll the server periodically? I was just surprised by the speed of the updates, so it's not any sort of long polling or anything like that at all.
jsnoob