Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lepicekmichal committed Jun 16, 2024
1 parent 56184cf commit 6bbb1f6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RELEASE_SIGNING_ENABLED=true

GROUP=eu.lepicekmichal.signalrkore
POM_ARTIFACT_ID=signalrkore
VERSION_NAME=0.8.4
VERSION_NAME=0.8.5

POM_NAME=SignalR Kore
POM_DESCRIPTION=Connect to SignalR Core server with library written in Kotlin and coroutines.
Expand Down
1 change: 1 addition & 0 deletions signalrkore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ kotlin {

if (OperatingSystem.current().isMacOsX) {
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class HttpHubConnectionBuilder(private val url: String) {
handshakeResponseTimeout,
headers.toMap(),
transportEnum,
null,
json,
logger,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import io.ktor.utils.io.core.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.IO
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.delay
Expand Down Expand Up @@ -125,7 +126,7 @@ class HubConnection private constructor(
}

if (skipNegotiate && transportEnum != TransportEnum.WebSockets)
throw RuntimeException("Negotiation can only be skipped when using the WebSocket transport")
throw RuntimeException("Negotiation can only be skipped when using a WebSocket transport")

val (negotiationTransport, negotiationUrl) = if (!skipNegotiate) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import io.ktor.http.HttpStatusCode
import io.ktor.http.contentLength
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.Flow
Expand All @@ -21,6 +22,7 @@ import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.coroutines.isActive
import kotlinx.coroutines.launch
import kotlinx.datetime.Clock
import kotlin.jvm.Volatile

internal class LongPollingTransport(private val headers: Map<String, String>, private val client: HttpClient) : Transport {

Expand Down

0 comments on commit 6bbb1f6

Please sign in to comment.