期刊文献+

基于Websocket的消息实时推送设计与实现 被引量:13

Design and Implementation of Real- time Server Message Push Based on Websocket
下载PDF
导出
摘要 随着互联网技术的快速发展,基于B/S架构的实时通讯和消息推送的应用范围越来越广泛,服务器消息推送是很多应用中的一项重要功能,服务器推送技术的优劣直接影响着消息推送的效率。传统的解决方案有html refresh,定时轮询和comet,但这些实现方案存在着资源消耗大、执行效率低、服务器负担过大等缺陷。Html5中引入了websocket这一全双工通信协议,利用此技术实现的方案能够在减轻服务器负担的同时高效地对服务器消息进行实时推送。使用node.js平台和socket.io库技术设计并实现了一种基于websocket协议的服务器实时消息推送平台。运行测试结果显示能快速稳定地实现消息的实时服务器推送。 With the rapid development of Internet technology,the application scope of the real- time communication and message push based on B / S framework is becoming more and more widely,and the server message push is one of the most important functions and the server push technology has a great influence on the efficiency of message pushing. The traditional solutions,such as html refresh,timing polling and comet,have disadvantages of resource wasting,low implementation efficiency and high server burden. Html 5,employing the websocket technology,as a full- duplex communication mechanism,is implemented to decrease server burden for the message push in real time. In this paper,the real- time message push system is designed and completed by the node. js platform and socket. io technology. The running test result shows that it can implement the real- time message server push rapidly and stably.
出处 《微处理机》 2016年第3期36-39,43,共5页 Microprocessors
基金 陕西科学技术研究发展计划项目(2014K05-19)
关键词 服务器推送 轮询 全双工协议 websocket协议 node.js技术 SOCKET io框架 Server push Timing polling Full-duplex Websocket protocol Node.js technology Socket io frameworks
  • 相关文献

参考文献7

  • 1周婷.基于HTTP长连接的“服务器推”技术[DB/OL].(2007.08,20)/[2015.05.01].http://www.ibm.com/developworks/cn/web/wa-lo-eome∥.
  • 2周乐钦,燕彩蓉,苏厚勤.基于Web-Socket协议的推送数据技术在监控系统中的应用研究[J].计算机应用与软件,2013,30(5):229-232. 被引量:17
  • 3刘华星,杨庚.HTML5——下一代Web开发标准研究[J].计算机技术与发展,2011,21(8):54-58. 被引量:124
  • 4W3C. The Websocket API [ DB/OL]. (2010. 03. 01 )/ [ 2015.05.01 ]. http ://dev. w3. org/html5/websockets/.
  • 5Website of project Push|ets [ DB/OL]. (2008. 11 )! [ 2015.05. O1 ]. http ://www. pushlets, com/.
  • 6CometD Bayeux Ajax Push [ DB/OL]. (2010. 01 )/ [ 2015.05.01 ]. http ://www. cometd, corn/.
  • 7zhangxin09.Ajax、comet、HTML5Websocket技术比较分析[DB/OL].(2013.01.04)/[2015.05.01].http://blog.csdn.net/zhangxin09/article/details/8464150/.

二级参考文献27

  • 1Vannavada S, Haven B. Apple Instigates the Flash vs. Html.5 Slam Dance [ EB/OL ]. [ 2010-11 - 16 ]. http ://www. icross- ing. com/articles/Apple -Instigates-the-Flash-vs-HTMLS- Slam-Dance. pdf.
  • 2Rogerio P.SVGVS Canvas[EB/OL].2010-09-01[2010-12-11].http://www.pinceladasdaweb.com.br/blog/2010/09/01/svg-vs-canvas/.
  • 3沈建苗.警惕HTML5引发新的安全问题[N].计算机世界,2010-09-06(S07版).
  • 4W3Sch001.HTML5教程[EB/OL].[2010-10-28].http://www.w3sch001.com.cn/html5/.
  • 5Lawson B ,Sharp R. Introducing HTML5 [ M]. United States of America: Pearson Education,2010.
  • 6White Paper. Towards Real- time Interaction on the Web [ EB/OL]. 2010-03 - 12 [ 2010-11 -05 ]. http ://pulsarlabs. org/files/2010-03-12 PulsarLabs_White_Paper. pdf.
  • 7Lubbers P, Albers B, Salim F. Pro HTML5 Programming: Pow- erful APIs for Richer Internet Application Development [ M ]. United States of America: Apress,2010.
  • 8Lubbers P, Greco F. HTML5 Web Sockets: A quantum leap in scalability for the web [Jl. Jay View,2010,21 (1) :3-7.
  • 9Hickson I.HTML5标准文档[EB/OL].2010-10-19[2010-11-13].http://www.w3.org/TR/html5/.
  • 10Pilgrim M. HTMI5 :Up and Running[ M]. United States of America : O' REILLY,2010.

共引文献139

同被引文献77

引证文献13

二级引证文献28

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部