add opportunity for reconnection for websockets

This commit is contained in:
2020-08-11 13:12:18 +06:00
parent 13b6dad2fb
commit 8b74e8534c
2 changed files with 41 additions and 21 deletions
ktor
client
src
commonMain
kotlin
com
insanusmokrassar
postssystem
tests
src
test
kotlin
com
insanusmokrassar
postssystem

@ -47,7 +47,8 @@ class WebsocketsTest {
}
val incomingWebsocketFlow = createStandardWebsocketFlow(
client,
"$serverUrl/$suburl"
"$serverUrl/$suburl",
{ false } // always skip reconnection
) {
standardKtorSerializer.load(Int.serializer(), it)
}