简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM