Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -120,6 +120,12 @@ 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