# from cpan
use JSON::RPC2::TwoWay 0.07;
# JSON::RPC2::TwoWay depends on JSON::MaybeXS anyways, so it can be used here
# without adding another dependency
use JSON::MaybeXS qw(JSON);
use MojoX::Nets
e JobCenter::Client::Mojo::Steps;
has [qw(
actions address auth clientid conn debug ioloop jobs json
lastping log method ns ping_timeout port rpc timeout tls token who
)];
# keep in sync with the
args{debug} // 0; # or 1?
$self->{ioloop} = $args{ioloop} // Mojo::IOLoop->singleton;
my $json = $args{json} // 1;
my $log = $args{log} // Mojo::Log->new(level => ($debug) ? 'debug' : 'info');
my