O'Reilly logo

Servlet & JSP: A Tutorial, Second Edition by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21

WebSocket

WebSocket is part of the Java EE stack and can be used to build interesting applications that require some kind of server push, such as chat applications, collaborative drawing boards, multi-player games, and so on. However, WebSocket can also be used to solve other problems such as HttpSession tracking in the browser.

This chapter explains what WebSocket is and gives several sample apps.

WebSocket Overview

The Internet Engineering Task Force (IETF), an Internet standards body, defined the WebSocket protocol in RFC 6455 in 2011, cementing the path for standardized duplex communications between a client and a remote server. Today all major browsers support the WebSocket protocol and can be used as websocket clients. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required