Closed RafalManka closed 3 years ago
Scarlet doesn't work with coroutines 1.4.0+ yet. If you downgrade to 1.3.9 this should work.
Sorry if this is not what you wanted to hear, we need to wait for fix to come.
nono, this is exactly what I wanted to hear, because it's an easy fix :-p
I replaced
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2'
with
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9'
and now it works correctly
You can place last kotlin reactive dependency into your gradle (watch full name in library gradle) and library will work with last coroutines version
Thanks @P1NG2WIN. This works for me now (1.4.2):
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-reactive:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
I am trying to consume my WebSocket service. I implemented it successfully using Rx, but when I am trying to migrate to coroutines, I am experiencing a crash.
dependencies:
This code:
will cause the application to crash with stacktrace. please don't mind the fact that the package name contains the word
stomp
, this needs to be changed as I am no longer using that protocol.Any idea what I am doing wrong? There is no official documentation as far as I know.