add ktor standard realisation of crud repo

This commit is contained in:
2020-08-25 14:46:44 +06:00
parent fbae8cac93
commit 14d6915282
12 changed files with 343 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ import kotlinx.coroutines.flow.channelFlow
* @param checkReconnection This lambda will be called when it is required to reconnect to websocket to establish
* connection. Must return true in case if must be reconnected. By default always reconnecting
*/
inline fun <reified T> HttpClient.createStandardWebsocketFlow(
inline fun <T> HttpClient.createStandardWebsocketFlow(
url: String,
crossinline checkReconnection: (Throwable?) -> Boolean = { true },
crossinline conversation: suspend (ByteArray) -> T