Scarlet
Scarlet copied to clipboard
A Retrofit inspired WebSocket client for Kotlin, Java, and Android
If I do not specify `lifecycle` for `Scarlet.Configuration`, `SocketIoClient` is not connecting. My dagger module which creates Scarlet ``` @Module class MykModule { @Singleton @Provides fun provideScarletConfiguration(app: Application): Scarlet.Configuration {...
moshi-kotlin transitively depends on the kotlin-reflect library which is a 2.5 MiB .jar file. in that way you can use each codegen or reflection inside final app also retrofit adapter...
If the application is alive we want bi-directional communication from client to server and vise versa. I see that my application never gets notified that the connection is down. This...
- Update dependencies - Add KotlinX Serialisation adapter - Change orders of Coroutines adapters - Added the posibility to send headers for socketIO - Formating and typo fixes
I'm using: `AndroidLifecycle.ofLifecycleOwnerForeground(application, activity, THROTTLE_TIMEOUT)` as my lifecycle and passing this into scarlet via `::lifecycle()` builder method. However, when my activity is paused/stopped scarlet continues to attempt reconnection. Is there...
- Gradle to version 7.1.1 - Kotlin to version 1.5.21 - AGP to version 7.0.0 - Dokka to version 1.5.0 - ktlint to version 0.41.0 - mockito-kotlin to version 2.2.11...
I found the provided demo a bit difficult to read. I thought it could be a good idea to provide an easier demo app: the developers will be able to...
Which published version should I use if I have to use RxJava3 Adapter. I can see #137 has been merged with 0.2.x but it is still experimental and not available...
Creating a second Service like this makes the socket reconnect, thereby opening multiple connections @Provides @Singleton fun provideAuthService(scarlet: Scarlet): Service1 { return scarlet.create(Service1::class.java) } @Provides @Singleton fun providesUserService(scarlet: Scarlet): Service2...