class WebSockets
Client WebSocket feature.
class Config
WebSockets configuration. |
|
companion object Feature : HttpClientFeature<Config, WebSockets>
Add WebSockets support for ktor http client. |
WebSockets(pingInterval: Long = -1L, maxFrameSize: Long = Int.MAX_VALUE.toLong()) WebSockets()
Client WebSocket feature. |
val maxFrameSize: Long
|
|
val pingInterval: Long
|
val key: AttributeKey<WebSockets>
The AttributeKey for this feature. |
fun install(feature: WebSockets, scope: HttpClient): Unit
Installs the feature class for a HttpClient defined at scope. |
|
fun prepare(block: Config.() -> Unit): WebSockets
Builds a TFeature by calling the block with a TConfig config instance as receiver. |