微型机与应用2016,Vol.35Issue(10):88-91,4.DOI:10.19358/j.issn.1674-7720.2016.09.030
基于HTML5 WebSocket的Web实时通信机制的研究与实现∗
Study and implementation of Web real-time communication mechanism based on HTML5 WebSocket
摘要
Abstract
With the development of Internet technology,Web technology has been applied in various fields , and people put forward higher re-quirements to the real-time of Web application. So HTML5 WebSocket protocol gets a lot of attention. Through the analysis of the traditional Web real-time communication scheme based on HTTP,for the deficiencies and disadvantages of HTTP, this paper introduces the real-time communication mechanism based on the HTML5 WebSocket protocol and the advantages compared with the traditional solutions. By using the Express framework of Node. js and third party application programming interface Socket. io library of HTML5 WebSocket protocol, it implements a Web application based on WeBsocket protocol. The experiment shows that it can successfully complete the process of real-time communication based on the HTML5 WebSocket protocol and establish a connection between the client and server.关键词
Web应用/WebSocket/实时通信/Socket. ioKey words
Web application/WebSocket/real-time communication/Socket. io分类
信息技术与安全科学引用本文复制引用
陈丽枫,郑力新,王佳斌..基于HTML5 WebSocket的Web实时通信机制的研究与实现∗[J].微型机与应用,2016,35(10):88-91,4.基金项目
华侨大学研究生科研创新能力培育计划项目(1400222001) (1400222001)