Assume I have an API URL https://example that streams a HUMONGOUS amount of data continuously, and the stream itself is not a valid JSON
How do I @GET and read data from such an API using Retrofit2?
Assume I have an API URL https://example that streams a HUMONGOUS amount of data continuously, and the stream itself is not a valid JSON
How do I @GET and read data from such an API using Retrofit2?
Please try this example:
Observable.interval(3, TimeUnit.SECONDS)
.flatMap(n -> apiCall())
.repeat()
.subscribe({
});