O'Reilly logo

Java EE 7 First Look by NDJOBO Armel Fabrice

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

Java API for WebSocket 1.0

The Java API for WebSocket 1.0 was developed under JSR 356. This section just gives you an overview of the API. The complete document specification (for more information) can be downloaded from http://jcp.org/aboutJava/communityprocess/final/jsr356/index.html.

What is WebSocket?

Originally called TCPConnection in previous versions of the HTML5 specification, WebSocket is an independent protocol built over the TCP (Transmission Control Protocol), which enables bidirectional and full-duplex communication between a client and a server.

To open a WebSocket connection in web application , the web client uses an HTTP request to ask the server to upgrade the connection to a WebSocket connection. If the server supports and accepts ...

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