O'Reilly logo

Java EE 7 Development with NetBeans 8 by David R. Heffelfinger

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 9. Java API for WebSocket

Traditionally, web applications consist of a request/response model. That is, the browser sends an HTTP request to the server and the server sends back an HTTP response. WebSocket is a new HTML5 technology that allows two-way, full-duplex communication between the client (typically a web browser) and the server. In other words, it allows the server to send data to the browser in real time, without having to wait for an HTTP request. Java EE 7 includes full support for developing WebSocket applications, and NetBeans includes some features that make developing WebSocket Java EE applications easier.

In this chapter, we will cover the following topics:

  • Examining WebSocket code using samples included with NetBeans
  • Developing ...

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