joffrey-bion / krossbow

A Kotlin multiplatform coroutine-based STOMP client over websockets, with built-in conversions.
MIT License
196 stars 14 forks source link

OkHttp implementation reports `http://` scheme in unresolved host error even when `ws://` was used #458

Closed joffrey-bion closed 6 months ago

joffrey-bion commented 6 months ago

What happened?

When connecting to an unknown host, the error message contains a different URL from the one used (always http://)

Reproduction and additional details

client.connect("ws://garbage") // fails with http://garbage in the message

Krossbow version

5.12.0

Krossbow modules

krossbow-websocket-okhttp

Kotlin version

1.9.22

Kotlin target platforms

Android, JVM (non-Android)