public interface WebSocketHandler
Modifier and Type | Method and Description |
---|---|
default List<String> |
getSubProtocols()
Return the list of sub-protocols supported by this handler.
|
reactor.core.publisher.Mono<Void> |
handle(WebSocketSession session)
Handle the WebSocket session.
|
default List<String> getSubProtocols()
By default an empty list is returned.
reactor.core.publisher.Mono<Void> handle(WebSocketSession session)
session
- the session to handleMono<Void>
to indicate the outcome of the
WebSocket session handling.