Playframework and Twitter Streaming API
问题 How to read response data from Twitter Streaming API - POST statuses/filter ? I have established connection and I receive 200 status code, but I don't know how to read tweets. I just want to println tweets as they coming. ws.url(url) .sign(OAuthCalculator(consumerKey, requestToken)) .withMethod("POST") .stream() .map { response => if(response.headers.status == 200) println(response.body) } EDIT: I found this solution ws.url(url) .sign(OAuthCalculator(consumerKey, requestToken)) .withMethod(