Created
April 18, 2017 13:11
-
-
Save anonymous/f43793b37f20d01b44e6f902b0e7e7f9 to your computer and use it in GitHub Desktop.
the description for this gist
This file contains 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
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