# Lightweight client for the RPC-Switch json-rpc request multiplexer
#
# see: RPC::Switch: https://github.com/a6502/rpc-switch
# RPC::Switch::Client: https://metacpan.org/pod/RPC::Switch::Client
#
package RPC::Switch::Client::Tiny;
use strict;
use warnings;
use Carp 'croak';
use JSON;
use IO::Select;
use IO::Socket::SSL;
use Time::HiRes qw(time);
use RPC::Switch::Client::Tiny::Error;
use RP
ert
} else {
$self->{auth_method} = 'password' unless exists $self->{auth_method};
}
$self->{json_utf8} = $self->{client_encoding_utf8} ? {} : {utf8 => 1};
return $self;
}
sub rpc_error {
retu