Skip to content

Instantly share code, notes, and snippets.

@d6y
Created October 6, 2012 12:19
Show Gist options
  • Select an option

  • Save d6y/3844774 to your computer and use it in GitHub Desktop.

Select an option

Save d6y/3844774 to your computer and use it in GitHub Desktop.
def handler : SNS.HandlerFunction = {
case s => for {
json <- JsonParser.parseOpt(s)
JString(msg) <- json \ "msg"
} ChatServer ! Chat(msg)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment