title: Reactive web applications read twitter stream Play Scala
body: <p>I am trying to follow the Twitter stream example of the Manning's <a href="https://www.manning.com/books/reactive-web-applications" rel="nofollow noreferrer">Reactive Web applications</a>
  The book is based on PlayFramework 2.5, however I would like to use a newer version of the framework, because why not.
  The book example uses a third party library <a href="https://github.com/jroper/play-iteratees-extras" rel="nofollow noreferrer">https://github.com/jroper/play-iteratees-extras</a> which doesnt seems to work with newer Play versions. The example uses this library to encode the stream received from twitter and to create a iteratee of a Json objects. My question is, is there any way to bypass this library with the existing Scala / Play API?</p>
  
  <p>The piece of code is the next: </p>
  
  <pre><code>val jsonStream: Enumerator[JsObject] =
      enumerator &amp;&gt;
      Encoding.decode() &amp;&gt;
      Enumeratee.grouped(JsonIteratees.jsSimpleObject)
  
  val loggingIteratee = Iteratee.foreach[JsObject] { value =&gt;
      Logger.info(value.toString)
  }
  </code></pre>
  
  <p>I tried to not to use the decode part and to create a Iteratee of JsObject, however I get an error regarding the iteratees: </p>
  
  <blockquote>
    <p>object Iteratee does not take type parameters.</p>
  </blockquote>
  
  <p>Any hint on to how bypass this library?</p>