Skip to content

Instantly share code, notes, and snippets.

Created April 18, 2017 13:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/035161507379a1b939b30ea67c5a2890 to your computer and use it in GitHub Desktop.
the description for this gist
val tlsStage: BidiFlow[SslTlsOutbound, ByteString, ByteString, SslTlsInbound, NotUsed]
val transport: Flow[ByteString, ByteString, Future[OutgoingConnection]]
tlsStage.joinMat(transport.connectTo(host, port))(Keep.right)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment