Implements bidirectional communication using HTTP POST for client-to-server
messages and SSE for server-to-client messages
Manages client sessions with unique IDs for reliable message delivery
Supports graceful shutdown with proper session cleanup
Provides JSON-RPC message handling through configured endpoints
Includes built-in error handling and logging
The transport operates on two main endpoints:
/sse - The SSE endpoint where clients establish their event stream
connection
A configurable message endpoint where clients send their JSON-RPC messages via HTTP
POST
This implementation uses ConcurrentHashMap to safely manage multiple client
sessions in a thread-safe manner. Each client session is assigned a unique ID and
maintains its own SSE connection.
WebMvcSseServerTransportProvider.Key features:
The transport operates on two main endpoints:
/sse- The SSE endpoint where clients establish their event stream connectionThis implementation uses
ConcurrentHashMapto safely manage multiple client sessions in a thread-safe manner. Each client session is assigned a unique ID and maintains its own SSE connection.