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 ...Get Java WebSocket Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.