Created
December 26, 2015 22:22
-
-
Save jonathanstowe/41a208c0667f2cc9fd57 to your computer and use it in GitHub Desktop.
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
use v6; | |
react { | |
whenever IO::Socket::Async.listen('localhost',3333) -> $conn { | |
whenever $conn.Supply(:bin) -> $buf { | |
await $conn.write: $buf | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment