Created
April 18, 2017 13:11
-
-
Save anonymous/877e6bfd597967e38f827f199937a779 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
source.sendNext(ByteString("anything")) | |
sink.request(1) | |
// Here we receive CONNECT message | |
transportInProbe.requestNext() | |
// Here we pull `bytesOut` of ProxyStage | |
transportInProbe.request(1) | |
// Here we push to `bytesIn` of ProxyStage | |
transportOutProbe.sendNext(ByteString("OK")) | |
val recv = transportInProbe.expectNext() | |
transportOutProbe.sendNext(recv) | |
sink.expectNext(ByteString("anything")) | |
source.sendComplete() | |
transportOutProbe.sendComplete() | |
sink.expectComplete() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment