open class WebSocketHandlerAdapter : HandlerAdapter
HandlerAdapter that allows using a WebSocketHandler with the generic DispatcherHandler mapping URLs directly to such handlers. Requests are handled by delegating to the configured WebSocketService which by default is HandshakeWebSocketService.
Author
Rossen Stoyanchev
Since
5.0
WebSocketHandlerAdapter()
Default constructor that creates and uses a HandshakeWebSocketService. WebSocketHandlerAdapter(webSocketService: WebSocketService)
Alternative constructor with the WebSocketService to use. |
open fun getWebSocketService(): WebSocketService |
|
open fun handle(exchange: ServerWebExchange, handler: Any): Mono<HandlerResult> |
|
open fun supports(handler: Any): Boolean |