Convos::Plugin - Base class for Convos plugins

  1. SYNOPSIS
  2. DESCRIPTION
  3. SEE ALSO

SYNOPSIS

package Convos::Plugin::CoolPlugin;
use Mojo::Base "Convos::Plugin";
sub register {
my ($self, $app, $config) = @_;
$app->core->backend->on(connection => sub {
my ($backend, $connection) = @_;
warn "New connection!";
});
}

DESCRIPTION

Convos::Plugin is the base class for Convos plugins, which all plugins need to inherit from.

SEE ALSO

Convos and Mojolicious::Plugin.