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