JSR 356, Java API for WebSocket, specifies the API that Java developers can use when they want to integrate WebSockets into their applications—both on the server side as well as on the Java client side. Every implementation of the WebSocket protocol that claims to be compliant with JSR 356 must implement this API.
JSR 356 defines a standard API for creating WebSocket applications (as standardize by IETF in protocol RFC 6455) enabling Web clients or native clients leveraging any WebSocket implementation to easily communicate with a Java back end.
JSR 356 provide support in the Java EE platform for:
- Creating WebSocket Java components to handle bi-directional WebSocket conversations
- Initiating and intercepting WebSocket events
- Creation and consumption of WebSocket text and binary messages
- The abililty to define WebSocket protocols and content models for an application
- Configuration and management of WebSocket sessions, like timeouts, retries, cookies, connection pooling
- Specification of how WebSocket application will work within the Java EE security model
See: