add crud repo server and change a lot of different things
This commit is contained in:
core/ktor
client
src
commonMain
kotlin
com
insanusmokrassar
postssystem
core
ktor
client
server
src
main
kotlin
com
insanusmokrassar
postssystem
core
ktor
ktor
client
src
commonMain
kotlin
com
insanusmokrassar
postssystem
ktor
client
server
src
jvmMain
kotlin
com
insanusmokrassar
postssystem
tests
src
test
kotlin
com
insanusmokrassar
postssystem
ktor
tests
utils/repos
common
src
commonMain
kotlin
com
insanusmokrassar
postssystem
utils
repos
exposed
src
main
kotlin
com
insanusmokrassar
postssystem
utils
repos
ktor
client
src
commonMain
kotlin
com
insanusmokrassar
postssystem
utils
repos
ktor
server
@ -27,9 +27,7 @@ class WebsocketsTest {
|
||||
val server = createKtorServer(host = "127.0.0.1", port = port) {
|
||||
install(WebSockets)
|
||||
routing {
|
||||
includeWebsocketHandling(suburl, dataFlow) {
|
||||
standardKtorSerialFormat.encodeToByteArray(Int.serializer(), it)
|
||||
}
|
||||
includeWebsocketHandling(suburl, dataFlow, Int.serializer())
|
||||
}
|
||||
}.also {
|
||||
it.start(false)
|
||||
@ -42,10 +40,9 @@ class WebsocketsTest {
|
||||
}
|
||||
val incomingWebsocketFlow = client.createStandardWebsocketFlow(
|
||||
"$serverUrl/$suburl",
|
||||
{ false } // always skip reconnection
|
||||
) {
|
||||
standardKtorSerialFormat.decodeFromByteArray(Int.serializer(), it)
|
||||
}
|
||||
{ false }, // always skip reconnection
|
||||
deserializer = Int.serializer()
|
||||
)
|
||||
|
||||
var currentlyCheckingData: Int? = null
|
||||
incomingWebsocketFlow.onEach {
|
||||
|
Reference in New Issue
Block a user