File tree Expand file tree Collapse file tree
kmp-socketio/src/commonMain/kotlin/com/piasy/kmp/socketio/engineio/transports Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ targetSdk = "35"
77agp = " 8.7.3"
88kotlin = " 2.1.10"
99mockk = " 1.13.16"
10- ktor = " 3.1.0 "
10+ ktor = " 3.2.2 "
1111coroutine = " 1.10.1"
1212compose = " 1.7.8"
1313
Original file line number Diff line number Diff line change @@ -79,22 +79,8 @@ class DefaultHttpClientFactory(
7979 }
8080 // Linux curl engine doesn't work for simultaneous websocket and http request.
8181 // see https://youtrack.jetbrains.com/issue/KTOR-8259/
82- // Use two http client could work around it.
83- private val httpClient: HttpClient = if (! Platform .isLinux) wsClient else httpClient(
84- trustAllCerts = trustAllCerts,
85- ) {
86- install(Logging ) {
87- logger = object : Logger {
88- override fun log (message : String ) {
89- com.piasy.kmp.xlog.Logging .info(" Net" , message)
90- }
91- }
92- level = LogLevel .ALL
93- }
94- install(WebSockets ) {
95- pingIntervalMillis = 20_000
96- }
97- }
82+ // But it's fixed in 3.2.0.
83+ private val httpClient: HttpClient = wsClient
9884
9985 override suspend fun createWs (
10086 url : String ,
You can’t perform that action at this time.
0 commit comments