Font Size: a A A

Research And Implementation Of Real-Time WEB Page Communication Based On WebSocket Protocol

Posted on:2019-11-26Degree:MasterType:Thesis
Country:ChinaCandidate:W X BaoFull Text:PDF
GTID:2428330566474152Subject:Electronic and communication engineering
Abstract/Summary:PDF Full Text Request
With the highly developed information technology,the demand for information timeliness is increasing.Web communication as an important way to get information,the Web application using HTTP protocol has been unable to meet the increasingly complex needs.The Web communication architecture pattern is mainly divided into the C/S(Client/Server)architecture pattern and the B/S(Brower/Server)architecture pattern.Due to the problems of poor maintainability,high development cost and compatibility of operation system in C/S architecture mode,the advantages of Web page communication under B/S architecture will be greatly reflected.In order to meet real time audio and video effects,real-time web page communication need to install plug-ins like Adobe Flash in the client browser to meet the real-time performance.The plug-in needs to be installed and updated by the user and needs to be maintained by the developer,and many versions are developed as the operating system needs to be different.In order to avoid the above disadvantages,the real-time and multimedia real-time communication of web pages will be the focus of the future communication system.The WebSocket protocol enables Web communication to have full duplex channels,enabling the server not only to pull and acquire,but also to push.It can meet the needs of realtime communication in the way of communication.WebRTC technology can enable clients to install plug-ins without installing plug-ins,and transmit data through point to point data in web browsers through multimedia and audio and video streaming,so as to achieve multimedia communication effect.This avoids the shortcomings of using plug-ins and can also satisfy real-time effects.This paper first introduces the Web real-time web page communication technology,and through the advantages and disadvantages analysis,the advantages of the real-time web page communication with the WebSocket protocol are obtained.Then the connection process and the transmission data mechanism of the WebSocket protocol are deeply studied.At the same time,the WebRTC technical framework and the JavaScript API are introduced in detail and how to complete the real-time transmission of point to point media stream.Finally,through the detailed study of the new characteristics of the two kinds of HTML5,a real-time webpage communication system based on WebSocket protocol and WebRTC technology is realized.The system architecture design and requirement analysis are carried out,and the feasibility of the two combination is analyzed.The server-side programming language uses node.js and uses the MySQL database to complete the login and registration functions.On this basis,the WebSocket protocol mechanism and WebRTC technology are used to establish real-time web communication system.This system can transmit text,expression and image data in real time,and it can also meet the effect of real-time audio and video communication.In order to demonstrate the feasibility of webpage communication system,this paper carries out functional test and performance test for each module of the system.Through data analysis and comparison,it verifies the effectiveness of the system in real-time and multimedia.
Keywords/Search Tags:WebSocket, WebRTC, HTML5, Real-time Web Page Communication, Multimedia
PDF Full Text Request
Related items