开发者

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".
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜