open class WebSocketConnectionManager : ConnectionManagerSupport
A WebSocket connection manager that is given a URI, a WebSocketClient, and a WebSocketHandler, connects to a WebSocket server through #start() and #stop() methods. If #setAutoStartup(boolean) is set to true this will be done automatically when the Spring ApplicationContext is refreshed.
Author
Rossen Stoyanchev
Since
4.0
WebSocketConnectionManager(client: WebSocketClient, webSocketHandler: WebSocketHandler, uriTemplate: String, vararg uriVariables: Any) |
open fun getHeaders(): HttpHeaders
Return the default headers for the WebSocket handshake request. |
|
open fun getOrigin(): String
Return the configured origin. |
|
open fun getSubProtocols(): MutableList<String>
Return the configured sub-protocols to use. |
|
open fun setHeaders(headers: HttpHeaders): Unit
Provide default headers to add to the WebSocket handshake request. |
|
open fun setOrigin(origin: String): Unit
Set the origin to use. |
|
open fun setSubProtocols(protocols: MutableList<String>): Unit
Set the sub-protocols to use. If configured, specified sub-protocols will be requested in the handshake through the |
|
open fun startInternal(): Unit |
|
open fun stopInternal(): Unit |