- Journal of New Results in Science
- Vol: 5 Special Issue
- The Comparison Of New Web Communication Method WebSocket With Traditional Methods
The Comparison Of New Web Communication Method WebSocket With Traditional Methods
Authors : Onur Cömert, Mahmut Hekim, Kemal Adem
Pages : 1-8
View : 16 | Download : 8
Publication Date : 2016-11-07
Article Type : Other
Abstract :The Internet has become an indispensable part of human life in the rapidly growing information age. In response to this demand the number of web-based applications is increasing as well. Web-based applications run in two parts, one on the client and other on the server side. Client-side usually is a web browser, and it requests content from the server. As a result, the server provides the necessary information to the client. To perform the communication between the server and the client, usually Polling, Long Polling and Comet web communication methods are used. In this study, WebSocket, which is the new web communication method, was compared with the Long Polling and Comet methods. For this, a web server and a client computer was used. On the server, three separate web pages were created to accept connection through the WebSocket, Long Polling, and Comet methods. The client computer, which uses a browser to view these web pages, downloads the data on the server into its own memory in pieces at regular intervals. In other experiments, the client computer sends data of different sizes to the server at regular intervals. The comparisons were made based on the bandwidth used. The advantages and disadvantages of the WebSocket method against the Long Polling and Comet methods were presented by comparing the results of the experiments.Keywords : Websocket, Long Polling, Comet, Ajax