This document discusses WebSocket and Server-Sent Events (SSE) in Java. It provides an overview of WebSocket including the handshake process and lifecycle. It also covers the Java API for creating WebSocket endpoints and handling messages. The document then discusses SSE and the EventSource JavaScript API. Finally, it compares WebSocket and SSE, noting their differences in capabilities and use cases.