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.
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. ...