The fast development of the Internet has brought urgent needs of real-time communication,which leads to software used in real-time communication be the biggest owner of users among allkinds of softwares used in the Internet. The real-time Web application is one way to implementreal-time communication, and it has two common patterns: B/S(Browser/Server) pattern andC/S(Client/Server) pattern.The development of internet has accelerated the research on applicationof real-time Web and put it into a large-scale use.Before the announcement of WebSocket protocol, developers have to use technologies basedon browser plugins, Polling or Comet method to implement the real-time Web application. Althoughthese technologies have been used widely, they still have flaws of either consuming a great quantityof server bandwidth and resourse, or continuously sending applying messages to the server whichcauses a lot of time and throughout capacity wasted. In this situation, a new WebSocket protocolcalled Web TCP appears.This paper firstly researches current widely used technical solutions of real-time Web andanalyzes their flaws; then proposes a new real-time Web communication solution based onWebSocket protocol and WebRTC technology. This new solution has in a certain degree avoided thedefects of common used ones, and is a more efficient and convenient solution. In the end, this paperdesigns and implements a new real-time Web communication system, and theoretically analyzes itsfeasibility. When building the new system, Java programming language is chose to implement aWebSocket server, and to improve the security and stability of the system, using SQL-Server tocollect and store users information. In order to provide users with convenience, the system is builton Windows Internet Information Services platform, and uses ASP.NET to implement user page.This paper also describes how to access user s real-time resourses, such as real-time videos and files,and ways to deal with them.To verify the feasibility and rationality of the new real-time Web communication system, thispaper assesses its performance through experiment. Result of the experiment proves the newsystem is reasonable and has a better performance. |