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