Group
Extension

Matches 1

AnyEvent-Campfire-Stream ( A/AA/AANOAA/AnyEvent-Campfire-Stream-0.0.3.tar.gz, AANOAA, 2012; MetaCPAN )
AnyEvent-Campfire-Stream/lib/AnyEvent/Campfire/Stream.pm ( view source; MetaCPAN )
espace::autoclean;

extends 'AnyEvent::Campfire';

use AnyEvent;
use AnyEvent::HTTP;
use URI;
use JSON::XS;
use Try::Tiny;

sub BUILD {
    my $self = shift;

    if ( !$self->authorization || !scalar
on,
    );

    my $on_json = sub {
        my $json = shift;
        if ( $json !~ /^\s*$/ ) {
            my $data;
            try {
                $data = decode_json($json);
                $sel
                    $on_json->($chunk);
                }
            );
        };
        my $line_reader = sub {
            my ( $handle, $line ) = @_;
            $on_json->($line);
        };

 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.