Font Size: a A A

Application Of Instant Communication Software Based On WebSocket

Posted on:2016-05-02Degree:MasterType:Thesis
Country:ChinaCandidate:M Y FanFull Text:PDF
GTID:2308330482476534Subject:Computer technology
Abstract/Summary:PDF Full Text Request
The instant communication is a kind of communication mode based on the Internet. With the advent of the information age, the Internet technology develops rapidly, and all kinds of web browsers have emerged, and become an indispensable tool in people’s life., there are only a few documents can be read online, and there is no interaction function in the early stage of the browser. With the development and popularity of JavaScrip, the application of B/S architecture based on browser is becoming more and more powerful, which has the trend of replace the application of C/S architecture. HTTP as a protocol for communication between the browser and the server, its limitations are gradually exposed. The model of HTTP request/response hinder full duplex communication, the HTTP header and some related request information should be carried when the browser sent server off a response command every time, which will cause the realization of complex, waste of resources, low real-time. Although the emergence of AJAX (asynchronous JavaScript and XML), some method which simulate full duplex communication based on AJAX can’t solve the problem of resource waste such as the AJAX long polling.In this paper, the main research contents are as follows. Firstly, several methods of real-time Web technology are analyzed, and the defects of their applications are summarized. Secondly, some key technologies which are adopted in this paper are analyzed, and a scheme for web instant messaging based on WebSocket is proposed which has advantages of convenient, fast and safety, and can make up for the deficiencies of the existing technology. A set of Web instant messaging software is developed based on the existing technology, and the development environment and the feasibility are analyzed. In order to improve the security of the system, fast and practical, Node.js is used to build HTTP and WebSocket server in this paper, and the Socket.IO is used to support WebSocket server, the connection between server and client is established conveniently by the WebSocket. The instant messaging is realized by using the server and WebSocket. In this paper, the layout of the existing communication software is optimized, which makes it simple, practical, practical, consistent, portable and advanced.In order to verify the feasibility of this novel web instant messaging system, the software has been tested and evaluated, and the feasibility of the communication system is proved by the analysis of the test data.
Keywords/Search Tags:WebSocket, Web instant messaging, JavaScript, Node.js server
PDF Full Text Request
Related items