Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements for on method & tests #2

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions signalrkore/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ kotlin {
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.0")
}
}
val jvmMain by getting {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class HttpHubConnectionBuilder(private val url: String) {
*/
var transportEnum: TransportEnum = TransportEnum.All

internal var transport: Transport? = null

/**
* The [HttpClient] to be used by the [eu.lepicekmichal.signalrkore.HubConnection]
*/
Expand Down Expand Up @@ -72,6 +74,7 @@ class HttpHubConnectionBuilder(private val url: String) {
if (::protocol.isInitialized) protocol else JsonHubProtocol(logger),
handshakeResponseTimeout,
headers.toMap(),
transport,
transportEnum,
json,
logger,
Expand Down
Loading