public interface WebSocketService
For a WebSocket endpoint this means handling the initial WebSocket HTTP handshake request. For a SockJS endpoint it could mean handling all HTTP requests defined in the SockJS protocol.
HandshakeWebSocketService
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
handleRequest(ServerWebExchange exchange,
WebSocketHandler webSocketHandler)
Handle the HTTP request and use the given
WebSocketHandler . |
reactor.core.publisher.Mono<java.lang.Void> handleRequest(ServerWebExchange exchange, WebSocketHandler webSocketHandler)
WebSocketHandler
.exchange
- the current exchangewebSocketHandler
- handler for WebSocket session