O'Reilly logo

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON by Bhakti Mehta, Masoud Kalali

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

Server-sent Events

We covered Server-sent Events in Chapter 2, WebSockets and Server-sent Events, and compared and contrasted client/server polling alternatives as well as WebSockets. In this chapter we will cover more advanced topics such as developing a Server-sent Events client using Jersey API and best practices for Server-sent Events.

Developing a Server-sent Event client using Jersey API

Chapter 2, WebSockets and Server-sent Events, gave a brief introduction to the Server-sent Events and JavaScript API. In this chapter we will cover the Java Client API for Server-sent Events, which is provided by Jersey. Jersey is an implementation of JAX-RS 2.0. In addition to the features of the JAX-RS 2.0 specification, Jersey has provided support for ...

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