Created
June 11, 2017 02:20
-
-
Save bioduds/7d3d3f7e91e36b506f9e6e6254110929 to your computer and use it in GitHub Desktop.
this is responsive, I mean it responds to a signal dying
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
my $socket = IO::Socket::Async.listen('192.168.1.106', 5000); | |
react { | |
whenever $socket.Supply -> $v { | |
if $v.chars > 0 { | |
say $v; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment