Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    $server->start;
    
    $server->reactor->start unless $server->reactor->is_running;
    
  2. or download this
    use warnings;
    use strict;
    ...
    $client->connect(address => '127.0.0.1', port => 3000);
     
    $client->reactor->start unless $client->reactor->is_running;