https://kotlinlang.org logo
#ktor
Title
# ktor
n

Nikky

05/03/2019, 9:56 PM
Right now, client WebSockets are only available for the CIO Client Engine.
and CIO is not available for js as far as i can see i oiginally inteded to use websockets because people told me its built into the browser/js, so i thought it would be available in the
JS
client or was i just blind and there is a multiplatform js artifact for CIO and websockets?
s

serebit

05/03/2019, 10:28 PM
it’s only available on JVM for the CIO client
The JS clients have websockets built in on 1.2.0-rc
🙏 1
👌 1
d

darkmoon_uk

05/04/2019, 3:02 PM
Right now, client WebSockets are only available for the CIO Client Engine.
@Nikky I had interpreted the situation as 'WebSockets are only integrated with the Coroutine I/O API, on the JVM'. However that doesn't mean that WebSockets themselves are limited to the JVM. Are you saying you have to have CIO integration?
n

Nikky

05/04/2019, 3:04 PM
No i do not think so, but i do need a abstraction layer to use it for jvm and js from common code, 1.2.0-rc seems to have that
👍 1
d

darkmoon_uk

05/04/2019, 3:05 PM
That was good timing then, as it's just been released 🙂
4 Views