So far I have successfully used the combination of Autowire and uPickle to make Ajax calls on a Spray router - see here for an example. Using this approach there is no blocking because the result returned to the client/browser is a Scala Future - basically the browser application will be informed about the result in due course, whether failure or a 'big list of items' has come back.
The problem I have is that the browser gets the whole 'big list of items' result returned all at once. I would like to do a query that returns an Observable, or a Stream. This will enable the UI to be dynamically populated as the user is watching. In this case the client will be informed as every item comes back (or every few items, it will be up to the client to decide how it interacts with the data 'pipe').
What is the simplest approach to take to enable this streaming into the client in a Scala.js application?
Edit This question has two sides so to make it simpler an answer outlining the code for just the client side will be accepted. The server-side can always be another SO question...