Scarlet
Scarlet copied to clipboard
A Retrofit inspired WebSocket client for Kotlin, Java, and Android
Hi, I'm trying to communicate with a STOMP server with my Android APP. There is an issue about that, but it is closed and not so much helpful. For example...
By using Koin i create my networkModule like below ``` val networkModule = module { ...... single { return@single AndroidLifecycle.ofApplicationForeground(androidApplication()) } single { return@single Scarlet.Builder() .webSocketFactory(get().newWebSocketFactory(Wss)) .lifecycle(get()) // I can...
Any example of how to handle uploading large files (say, 100MB) for a server which has a message size limit (say, 2KB per websocket message) through fragmentation? Is the feature...
I see there is a similar thread to this but I feel it wasn't emphasized enough that nobody can come to this repo read your docs and immediately use this...
 help me
I have created my Socket Interface with the @Receive observeEvents and @Send sendMessage and also the @Receive observeApiMessage methods. I can observe the events when they happen however the observeApiMessage...
Hello, When we try to navigate to the [Gdax API](https://api.gdax.com/), the response gives the error below: `{ "message": "see https://docs.pro.coinbase.com for API documentation" }` Thus I wanted to update the...
Hope to handle lifecyclestop() in Connecting state.
This is how I have set up my connection: ``` fun initConnection(deviceId: String?) { val backoffStrategy = LinearBackoffStrategy(1000) val okHttpClient = OkHttpClient.Builder() .readTimeout(10, TimeUnit.SECONDS) .build() val scarletInstance = Scarlet.Builder() .webSocketFactory(okHttpClient.newWebSocketFactory("ws://$SERVER_IP:$SERVER_PORT/id=$deviceId&version=${BuildConfig.VERSION_NAME}"))...
Whenever i turn off/on my internet, it creates two more new connections. Let's say i opened a connection like this ``` Scarlet( protocol = SocketIoClient({ "http://tinder.io/" }), configuration = Scarlet.Configuration(...