Comet技术也称反向AJAX技术,它主要是通过服务器端主动推送,解决AJAX需定期轮询发送消息请求连接所要消耗服务器资源的问题,给用户实时交互使用带来了全新的体验。文章主要介绍Comet技术、实现方式、实现框架等,使用Comet技术完成实时系统的开发方法和步骤。主要是通过开源的Pushlet框架技术相结合完成网页主动推送的功能,实现网页数据实时主动呈现给用户的最终效果。%Comet technology also known as reverse Ajax technology, it is mainly through the server-side active push, to solve the Ajax to polling periodically sends a message to request connection to server resource consumption, to the use of real-time user interaction is a new experience. This paper mainly introduces the realization of Comet technology, and the realization framework, using Comet technology to complete the development of the methods and steps of real-time system. Mainly through the Pushlet open source framework technology is accomplished by combining the "active push function, realize the real-time web data presented to the end user's active effect.
展开▼