++ed by:
YKO UNDEF

2 PAUSE users

Сергей Засенко
and 1 contributors

NAME

JLogger::Transport - base class for JLogger transport.

SYNOPSIS

    use base 'JLogger::Transport';

    sub init {
        my $self = shift;

        ...
    }

    sub connect {
        my $self = shift;

        ...
    }

ATTRIBUTES

JLogger::Transport implements following attributes.

host

    my $host = $transport->host;

port

    my $port = $transport->port;

secret

    my $secret = $transport->secret;

on_message

    $transport->on_message(sub {
        my ($transport, $xml) = @_;

        ...
    });

    my $cb = $transport->on_message;

METHODS

init

    $transport->init;

(Re)initialize transport. Called automatically after new.

connect

    $transport->connect;

Estiblish connection to jabber server.