Terse
(
L/LN/LNATION/Terse-0.27.tar.gz, LNATION, 2025;
MetaCPAN
)
trict;
use warnings;
no warnings 'redefine';
use Plack::Request;
use Plack::Response;
use Cpanel::JSON::XS;
use Scalar::Util qw/reftype/;
use Time::HiRes qw(gettimeofday);
use Terse::WebSocket;
use Wa
URI;
use Struct::WOP qw/all/ => { type => ['UTF-8'], destruct => 1 };
our ($JSON, %PRIVATE);
BEGIN {
$JSON = Cpanel::JSON::XS->new->utf8->canonical(1)->allow_blessed->convert_blessed;
%PRIVATE = (
websocket delayed_response build_terse content_type raiseError graft pretty serialize DESTROY TO_JSON AUTOLOAD to_app/
);
}
sub new {
my ($pkg, %args) = @_;
$pkg = ref $pkg if ref $pkg;
if (