Skip to content

Instantly share code, notes, and snippets.

@jonathanstowe
Created December 26, 2015 22:22
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 jonathanstowe/41a208c0667f2cc9fd57 to your computer and use it in GitHub Desktop.
Save jonathanstowe/41a208c0667f2cc9fd57 to your computer and use it in GitHub Desktop.
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