Convos::Loopback - Loopback connection
This class represents a loopback connection. That is a connection which is only visible internally to convos, and thus does not require a IRC server.
This module must be compatible with Mojo::IRC.
my $connection = Convos::Core::Connection->new(....); my $loopback = Convos::Loopback->new(connection => $connection); $loopback->connect(sub { my($loopback, $error) = @_; # ... });
Cannot be set. Will always return "loopback".
Holds the nick.
Alias for "nick".
for compat reasons
Holds an instance of Mojo::IOLoop.
Holds an instance of Mojo::Redis.
Holds and instance of Convos::Core::Connection. Must be provided in constructor.
Used to create a new object. "connection" is required parameter.
Used to change "nick".
$self->connect($cb);
Will start subscribing to messages sent to this nick.
Does nothing.
See "write" in Mojo::IRC.
Jan Henning Thorsen - jhthorsen@cpan.org
jhthorsen@cpan.org
To install Convos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convos
CPAN shell
perl -MCPAN -e shell install Convos
For more information on module installation, please visit the detailed CPAN module installation guide.