Add reference to ConcurrentWebSocketSessionDecorator in the docs.
Issue: SPR-12886
This commit is contained in:
@@ -120,6 +120,13 @@ public interface WebSocketSession extends Closeable {
|
||||
|
||||
/**
|
||||
* Send a WebSocket message: either {@link TextMessage} or {@link BinaryMessage}.
|
||||
*
|
||||
* <p><strong>Note:</strong> The underlying standard WebSocket session (JSR-356) does
|
||||
* not allow concurrent sending. Therefore sending must be synchronized. To ensure
|
||||
* that, one option is to wrap the {@code WebSocketSession} with the
|
||||
* {@link org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator
|
||||
* ConcurrentWebSocketSessionDecorator}.
|
||||
* @see org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator
|
||||
*/
|
||||
void sendMessage(WebSocketMessage<?> message) throws IOException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user