Package | Description |
---|---|
org.springframework.web.socket |
Common abstractions and Spring configuration support for WebSocket applications.
|
org.springframework.web.socket.adapter |
Classes adapting Spring's WebSocket API to and from WebSocket providers.
|
org.springframework.web.socket.handler |
Convenient
WebSocketHandler
implementations and decorators. |
org.springframework.web.socket.messaging |
WebSocket integration for Spring's messaging module.
|
org.springframework.web.socket.sockjs.client |
SockJS client implementation of
WebSocketClient . |
org.springframework.web.socket.sockjs.transport.session |
SockJS specific implementations of
WebSocketSession . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractWebSocketMessage<T>
A message that can be handled or sent on a WebSocket connection.
|
class |
BinaryMessage
A binary WebSocket message.
|
class |
PingMessage
A WebSocket ping message.
|
class |
PongMessage
A WebSocket pong message.
|
class |
TextMessage
A text WebSocket message.
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketHandler.handleMessage(WebSocketSession session,
WebSocketMessage<?> message)
Invoked when a new WebSocket message arrives.
|
void |
WebSocketSession.sendMessage(WebSocketMessage<?> message)
Send a WebSocket message: either
TextMessage or BinaryMessage . |
Modifier and Type | Method and Description |
---|---|
void |
AbstractWebSocketSession.sendMessage(WebSocketMessage<?> message) |
Modifier and Type | Method and Description |
---|---|
void |
LoggingWebSocketHandlerDecorator.handleMessage(WebSocketSession session,
WebSocketMessage<?> message) |
void |
ExceptionWebSocketHandlerDecorator.handleMessage(WebSocketSession session,
WebSocketMessage<?> message) |
void |
PerConnectionWebSocketHandler.handleMessage(WebSocketSession session,
WebSocketMessage<?> message) |
void |
AbstractWebSocketHandler.handleMessage(WebSocketSession session,
WebSocketMessage<?> message) |
void |
WebSocketHandlerDecorator.handleMessage(WebSocketSession session,
WebSocketMessage<?> message) |
void |
ConcurrentWebSocketSessionDecorator.sendMessage(WebSocketMessage<?> message) |
void |
WebSocketSessionDecorator.sendMessage(WebSocketMessage<?> message) |
Modifier and Type | Method and Description |
---|---|
void |
ConcurrentWebSocketSessionDecorator.setMessageCallback(Consumer<WebSocketMessage<?>> callback)
Set a callback invoked after a message is added to the send buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
SubProtocolWebSocketHandler.handleMessage(WebSocketSession session,
WebSocketMessage<?> message)
Handle an inbound message from a WebSocket client.
|
void |
SubProtocolHandler.handleMessageFromClient(WebSocketSession session,
WebSocketMessage<?> message,
MessageChannel outputChannel)
Handle the given
WebSocketMessage received from a client. |
void |
StompSubProtocolHandler.handleMessageFromClient(WebSocketSession session,
WebSocketMessage<?> webSocketMessage,
MessageChannel outputChannel)
Handle incoming WebSocket messages from clients.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractClientSockJsSession.sendMessage(WebSocketMessage<?> message) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractSockJsSession.sendMessage(WebSocketMessage<?> message) |