Skip to content

Instantly share code, notes, and snippets.

@ioRekz
Last active January 2, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ioRekz/8327598 to your computer and use it in GitHub Desktop.
Save ioRekz/8327598 to your computer and use it in GitHub Desktop.
Play Scala SSE EventEtractor from json
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