open class HandshakeWebSocketService : WebSocketService, Lifecycle
WebSocketService implementation that handles a WebSocket HTTP handshake request by delegating to a RequestUpgradeStrategy which is either auto-detected (no-arg constructor) from the classpath but can also be explicitly configured.
Author
Rossen Stoyanchev
Since
5.0
HandshakeWebSocketService()
Default constructor automatic, classpath detection based discovery of the RequestUpgradeStrategy to use. HandshakeWebSocketService(upgradeStrategy: RequestUpgradeStrategy)
Alternative constructor with the RequestUpgradeStrategy to use. |
open fun getUpgradeStrategy(): RequestUpgradeStrategy
Return the RequestUpgradeStrategy for WebSocket requests. |
|
open fun handleRequest(exchange: ServerWebExchange, handler: WebSocketHandler): Mono<Void> |
|
open fun isRunning(): Boolean |
|
open fun start(): Unit |
|
open fun stop(): Unit |