Ktor: Native websocket client support

Created on 1 Jul 2019  路  8Comments  路  Source: ktorio/ktor

Guys, Do you have any plans to support ktor-http-cio/posix/src/io/ktor/http/cio/websocket?

There is the nice one library https://github.com/korlibs/korio, thanks Carlos.
But now this library is not supported for 1.3.30+ kotlin. And I think we should use best api for this one, like in ktor.

feature

Most helpful comment

I'm also longingly waiting for websocket support on both Android and iOS. Can we expect it to come soon?

All 8 comments

This is the only thing blocking one of my projects from supporting Kotlin/Native. The stubs do allow it to compile, but it won't run without implementation. An update on this would be appreciated, @e5l

@e5l , are there any plans for this( I saw u branch cio-common)?

Yep, we're waiting for 1.4-M2 for the fixes. ETA is around kotlin 1.4. Sorry for the delay.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Yep, we're waiting for 1.4-M2 for the fixes. ETA is around kotlin 1.4. Sorry for the delay.

Kotlin 1.4 is out, ktor 1.4.0 is released, too. CIO engine supports native platform now.
iOS app compiles without any errors, but still fails with WebSockets is not supported in native CIO engine. on this line. Any updates?

Ktor 1.4 supports sockets on native, but seemingly not websockets.

I'm also longingly waiting for websocket support on both Android and iOS. Can we expect it to come soon?

android CIO have websocket support, we using it in Lonje chat app https://play.google.com/store/apps/details?id=com.lonje

Was this page helpful?
0 / 5 - 0 ratings