Skip to content

Commit 3fae242

Browse files
committed
fix publish
1 parent 5588e70 commit 3fae242

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

kmp-socketio/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ kotlin {
9999
api(libs.ktor.client.js)
100100
}
101101
}
102+
wasmJsMain {
103+
dependencies {
104+
api(libs.ktor.client.wasm)
105+
}
106+
}
102107
mingwMain {
103108
dependencies {
104109
api(libs.ktor.client.winhttp)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.piasy.kmp.socketio.engineio.transports
2+
3+
import io.ktor.client.HttpClientConfig
4+
import io.ktor.client.HttpClient
5+
import io.ktor.client.engine.js.Js
6+
7+
actual fun httpClient(trustAllCerts: Boolean, config: HttpClientConfig<*>.() -> Unit): HttpClient = HttpClient(Js) {
8+
config(this)
9+
/** Ignore `unsafeClient` variable */
10+
}

0 commit comments

Comments
 (0)