O'Reilly logo

Java WebSocket Programming by Danny Coward

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

image
CHAPTER
4
Configurations and Sessions
In this chapter, we will examine two of the most important objects in the Java WebSocket API: the Session and the EndpointConfig. These objects inside a running WebSocket application represent the configuration information of an endpoint and the active connection to a peer, respectively. They are the foundations in which developers can build application state. We will start right out with the Chat sample. The Chat sample is a simple JavaScript client to the Java WebSocket server application that makes use of several features of Session and EndpointConfig and paves the way for a more detailed exposition of ...

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