Last active
January 2, 2016 15:59
-
-
Save ioRekz/8327598 to your computer and use it in GitHub Desktop.
Play Scala SSE EventEtractor from json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import play.api.libs.EventSource._ | |
implicit def pair[E]: EventNameExtractor[JsValue] = EventNameExtractor[JsValue](p => Some((p \ "event").as[String])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment