This document provides an overview of JSR 356, which defines a Java API for building HTML5 WebSocket applications. Key points include:
- JSR 356 aims to standardize the API for creating WebSocket endpoints and applications in Java.
- It will be included in Java EE 7 and is currently in an early draft review stage.
- The reference implementation is Tyrus, which is integrated into GlassFish.
- The API supports creating WebSocket endpoints as POJOs or by extending the Endpoint class. It includes annotations for intercepting lifecycle events.
- The API addresses issues like message encoding/decoding, URI template matching, and subprotocol negotiation to enable building interactive client/server apps.