mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-22 16:23:50 +00:00
UnifiedRequester#createStandardWebsocketFlow(String,DeserializationStrategy)
This commit is contained in:
parent
16c57fcd6a
commit
771aed0f0f
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## 0.9.10
|
## 0.9.10
|
||||||
|
|
||||||
|
* Ktor:
|
||||||
|
* Client:
|
||||||
|
* New function `UnifiedRequester#createStandardWebsocketFlow` without `checkReconnection` arg
|
||||||
|
|
||||||
## 0.9.9
|
## 0.9.9
|
||||||
|
|
||||||
* `Versions`:
|
* `Versions`:
|
||||||
|
@ -85,9 +85,14 @@ class UnifiedRequester(
|
|||||||
|
|
||||||
fun <T> createStandardWebsocketFlow(
|
fun <T> createStandardWebsocketFlow(
|
||||||
url: String,
|
url: String,
|
||||||
checkReconnection: (Throwable?) -> Boolean = { true },
|
checkReconnection: (Throwable?) -> Boolean,
|
||||||
deserializer: DeserializationStrategy<T>
|
deserializer: DeserializationStrategy<T>
|
||||||
) = client.createStandardWebsocketFlow(url, checkReconnection, deserializer, serialFormat)
|
) = client.createStandardWebsocketFlow(url, checkReconnection, deserializer, serialFormat)
|
||||||
|
|
||||||
|
fun <T> createStandardWebsocketFlow(
|
||||||
|
url: String,
|
||||||
|
deserializer: DeserializationStrategy<T>
|
||||||
|
) = createStandardWebsocketFlow(url, { true }, deserializer)
|
||||||
}
|
}
|
||||||
|
|
||||||
val defaultRequester = UnifiedRequester()
|
val defaultRequester = UnifiedRequester()
|
||||||
|
Loading…
Reference in New Issue
Block a user