oksse
oksse copied to clipboard
An extension library for OkHttp to create a Server-Sent Event (SSE) client.
Exception java.lang.IllegalStateException: Check failed. at okhttp3.internal.connection.RealCall.timeoutEarlyExit (RealCall.kt:409) at okhttp3.internal.sse.RealEventSource.processResponse (RealEventSource.kt:65) at okhttp3.internal.sse.RealEventSource.onResponse (RealEventSource.kt:46) at okhttp3.internal.connection.RealCall$AsyncCall.run (RealCall.kt:519) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641) at java.lang.Thread.run (Thread.java:923)
error in Request.Builder(). cannot resolve Builder
When I bundle the oksse library as part of my android app, I get an issue where the list of protocols available is limited to only http/1.1 However, I've been...
I'll soon start a SSE project, not sure if I should go with this library that looks dedicated to the problem or pick the experimental project from okhttp main repository...
https://jitpack.io/com/github/heremaps/oksse/0.9.0/build.log
The following code throws a StrictMode error: ```kotin val request = Request.Builder().url(url).build() val okSse = OkSse(client) sse = okSse.newServerSentEvent(request, listener()) ``` ``` 04-04 14:58:32.269 7907-8257/co.app.debug E/StrictMode: A resource was acquired...
I can help to write the new version.