Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2017 13:11
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 anonymous/f43793b37f20d01b44e6f902b0e7e7f9 to your computer and use it in GitHub Desktop.
Save anonymous/f43793b37f20d01b44e6f902b0e7e7f9 to your computer and use it in GitHub Desktop.
the description for this gist
private var bufferedMsgs = Vector.empty[ByteString]
setHandler(sslIn, new InHandler {
override def onPush() = {
state match {
case Connected ⇒
push(bytesOut, grab(sslIn))
case _ ⇒
bufferedMsgs :+= grab(sslIn)
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment