0

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?

Biali
  • 103
  • 1
  • 6

1 Answers1

0

Please try this example:

Observable.interval(3, TimeUnit.SECONDS)
.flatMap(n -> apiCall())
.repeat()
.subscribe({

});
Bhuvnesh
  • 1,055
  • 9
  • 29