| 注册
首页|期刊导航|微型机与应用|基于HTML5 WebSocket的Web实时通信机制的研究与实现∗

基于HTML5 WebSocket的Web实时通信机制的研究与实现∗

陈丽枫 郑力新 王佳斌

微型机与应用2016,Vol.35Issue(10):88-91,4.
微型机与应用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

陈丽枫 1郑力新 1王佳斌1

作者信息

  • 1. 华侨大学 工学院,福建 泉州362021
  • 折叠

摘要

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

Key words

Web application/WebSocket/real-time communication/Socket. io

分类

信息技术与安全科学

引用本文复制引用

陈丽枫,郑力新,王佳斌..基于HTML5 WebSocket的Web实时通信机制的研究与实现∗[J].微型机与应用,2016,35(10):88-91,4.

基金项目

华侨大学研究生科研创新能力培育计划项目(1400222001) (1400222001)

微型机与应用

2097-1788

访问量0
|
下载量0
段落导航相关论文