This Article 
 Bibliographic References 
 Add to: 
Communicating and Displaying Real-Time Data with WebSocket
July-Aug. 2012 (vol. 16 no. 4)
pp. 45-53
Victoria Pimentel, Universidad Simón Bolívar
Bradford G. Nickerson, University of New Brunswick
Internet communication provides a convenient, hyperlinked, stateless exchange of information, but can be problematic when real-time data exchange is needed. The WebSocket protocol reduces Internet communication overhead and provides efficient, stateful communication between Web servers and clients. To determine whether WebSocket communication is faster than HTTP polling, the authors built a Web application to measure the one-way transmission latency of sending real-time wind sensor data at a rate of 4 Hz. They implemented a Jetty servlet to upgrade an HTTP connection to a WebSocket connection. Here, they compare the WebSocket protocol latency to HTTP polling and long polling.

1. J. Åkerberg, M.M. Gidlund, and M. Björkman, "Future Research Challenges in Wireless Sensor and Actuator Networks Targeting Industrial Automation," Proc. 9th IEEE Int'l Conf. Industrial Informatics (INDIN 11), IEEE Press, 2011, pp. 410–415.
2. W. Hu, G.-P. Liu, and D. Rees, "Networked Predictive Control over the Internet Using Round-Trip Delay Measurement," IEEE Trans. Instrumentation and Measurement, vol. 57, no. 10, 2008, pp. 2231–2241.
3. P. Lubbers, B. Albers, and F. Salim, Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development, Apress, 2010.
4. R. Gravelle, "Comet Programming: Using Ajax to Simulate Server Push," Webreference tutorial, Mar. 2009; rg28index.html.
5. P. Lubbers and F. Greco, "HTML5 Web Sockets: A Quantum Leap in Scalability for the Web," SOA World Magazine, Mar. 2010;
6. I. Fette and A. Melnikov, "The Websocket Protocol," IETF Internet draft, work in progress, Dec. 2011.
7. I. Hickson, "The Websocket API," W3C candidate recommendation, Dec. 2011;
8. A.S. Tanenbaum, Computer Networks, 4th ed., Prentice Hall, 2003.
9. V. Pimentel and B.G. Nickerson, Web Display of Real-Time Wind Sensor Data, tech. report TR11-214, Faculty of Computer Science, Univ. of New Brunswick, Dec. 2011.
10. D. Mills et al., Network Time Protocol Version 4: Protocol and Algorithms Specification, IETF RFC 5905, June 2010;
1. B. Chen and Z. Xu, "A Framework for Browser-Based Multiplayer Online Games Using Webgl and Websocket," Proc. Int'l Conf. Multimedia Technology (ICMT 11), IEEE Press, 2011, pp. 471–474.
2. P. Lubbers and F. Greco, "HTML5 Web Sockets: A Quantum Leap in Scalability for the Web," SOA World Magazine, Mar. 2010;

Index Terms:
Servers,Protocols,Real time systems,Internet,Web and internet services,Base stations,Synchronization,Wide area networks,wide area networks,Servers,Protocols,Real time systems,Internet,Computers,Base stations,Synchronization,latency,Web technologies,real time,communications applications,Web servers,data communications aspects,WebSocket
Victoria Pimentel, Bradford G. Nickerson, "Communicating and Displaying Real-Time Data with WebSocket," IEEE Internet Computing, vol. 16, no. 4, pp. 45-53, July-Aug. 2012, doi:10.1109/MIC.2012.64
Usage of this product signifies your acceptance of the Terms of Use.