Font Size: a A A

Research Of Web Instant Messaging Data-Push Method Based On Dojo

Posted on:2014-10-30Degree:MasterType:Thesis
Country:ChinaCandidate:X C CaiFull Text:PDF
GTID:2308330473451118Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the development of the Internet, Web applications play important roles more and more in people’s lives nowadays. The emergence of instant messaging has brought unprecedented convenience experience to people’s live, which let people fully appreciate that "Earth is flat". So in recent years, the world’s developed Internet companies like Google, Facebook, Twitter, etc. have been committed to building the Web IM (Web Instant Messaging) platform, allowing users to experience rich Internet applications on the social networking platform and to use instant messaging through the Web anytime and anywhere as well. In order to build an efficient Web IM platform, to use what kind of message pushing method and development framework has become the focus of research in this field.To solve the problems mentioned above, this paper firstly did some research about several existing message push methods, and then summed up the advantages and disadvantages of the methods after a comparative analysis of current mainstream message push ways. In order to improve the existing problems, this paper did a lot detailed analysis about the process of connection establishment and the principle of data push process and then proposed an improved method based on long polling push method, which use two connections to run alternately for maintaining a persistent connection so as to avoid message delay. At the same time when there is new data on the server side, it will push the data response with the request response to the client side, thereby to reduce the waste of network resources caused by multiple responses. In order to achieve the improved push method, this paper designed the connection management module in the server side, and in order to make the method more efficient, we proposed a mathematical model to establish the method for calculating the optimum heartbeat time.On this basis, with the analysis of Web applications, we selected Dojo as the framework of Web application development, and selected XMPP protocol as the communication protocol of Web IM applications. At the same time we proposed an XMPP protocol extension protocol for the specification of the implementation process of the connection management. With the researches above, this paper proposed a set of Web instant messaging push mechanism based on Dojo Toolkit, including the design and implementation of Web instant messaging application development framework and Web clients. In this paper, we did a series of tests with the Web applications built in our project to verify the effectiveness of the improved message push method. We did comparison tests between Long polling message push method and improved message push method, and the experimental results showed that the improved method has greatly improved from the two sides of network resources occupancy and message push instantaneity.
Keywords/Search Tags:data push, instant messaging, long rolling, Dojo, XMPP protocol
PDF Full Text Request
Related items