what kind of technology is node-chat using
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.
- 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".
精彩评论