Tyrus 1.6 User Guide


Table of Contents

Preface
1. Getting Started
1.1. WebSocket Services Using Java API for WebSocket
1.1.1. Creating Annotated Server Endpoint
1.1.2. Client Endpoint
1.1.3. Creating Server Endpoint Programmatically
1.1.4. Tyrus in Standalone Mode
2. Tyrus Modules and Dependencies
3. Deploying WebSocket Endpoints
3.1. Deploying Endpoints as a WAR file
3.1.1. Deployment Algorithm
3.2. Deploying endpoints via javax.websocket.server.ServerContainer
4. WebSocket API Endpoints, Sessions and MessageHandlers
4.1. Endpoint Classes
4.1.1. javax.websocket.server.ServerEndpoint
4.1.2. javax.websocket.ClientEndpoint
4.2. Endpoint method-level annotations
4.2.1. @OnOpen
4.2.2. @OnClose
4.2.3. @OnError
4.2.4. @OnMessage
4.3. MessageHandlers
5. Configurations
5.1. javax.websocket.server.ServerEndpointConfig
5.2. javax.websocket.ClientEndpointConfig
6. Endpoint Lifecycle, Sessions, Sending Messages
6.1. Endpoint Lifecycle
6.2. javax.websocket.Session
6.3. Sending Messages
6.4. RemoteEndpoint
6.4.1. javax.websocket.RemoteEndpoint.Basic
6.4.2. javax.websocket.RemoteEndpoint.Async
7. Injection Support
7.1. javax.inject.Inject sample
7.2. EJB sample
8. Tyrus proprietary configuration
8.1. Client-side SSL configuration
8.2. Asynchronous connectToServer methods
8.3. Optimized broadcast
8.4. Incoming buffer size
8.5. Shared client container
8.6. WebSocket Extensions
8.6.1. ExtendedExtension sample
8.6.2. Per Message Deflate Extension
8.7. Client reconnect
8.8. Client behind proxy
8.9. JDK 7 client
8.9.1. SSL configuration
8.10. JMX Monitoring
8.10.1. Configuration

List of Tables

2.1. Tyrus core modules
2.2. Tyrus containers