Hi there, In general “streaming consumption" of such API can be simplified to “start working with the data before the entire transfer completes. Since it’s JSON you likely want to parse it somewhat, or select specific elements etc.
AFAICS http://oboejs.com/examples is one of the streaming parsers available for javascript, so you could use that for example. I’m sure theres others too, in general what you’re looking for is “sax” or “streaming” parsers. — Konrad `kto.so` Malawski Akka <http://akka.io> @ Lightbend <http://lightbend.com> On 1 August 2017 at 09:43:35, B Wills ([email protected]) wrote: Hi, I have created a web service that sends a response in the form of a JSON stream, similar to the below code snippet from the akka-streams documentation: val route = path("tweets") { // [3] simply complete a request with a source of tweets: val tweets: Source[Tweet, NotUsed] = getTweets complete(tweets) } I would like to be able to consume the stream over http via a Node.js client - has anyone done something like this before? I have looked at akka.js and scala.js some, but based on my reading it sounds like this might "just work" without any special libraries on the client-side. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout. -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
