Exobrain

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    * DOCS: Expanded information in Exobrain.pm
    * BUGFIX: Fixed bug where libraries were not packaged.

1.03      2014-02-28 12:47:07EST-0500 America/Montreal

    * DISTRIBUTION: De-crufted distributed tarball.
                    See GH #37, thanks to @tsibley for spotting this.

1.02      2014-02-28 03:02:36EST-0500 America/Montreal

    * SERVICE: Removed not-yet-completed Facebook endpoint.

1.01      2014-02-28 02:30:43EST-0500 America/Montreal

    * META: Updated meta-info for distribution.
    * HRPG: Fixed handling of XP for Sending mail, and XP in general.
    * FEATURE: Exobrain::Config supports writing of config files.
    * FEATURE: Exobrain::Config supports ~/.config/exobrain directories.

1.00      2014-02-26 02:44:28EST-0500 America/Montreal

lib/Exobrain/Bus.pm  view on Meta::CPAN

use Method::Signatures;

use Exobrain::Router;
use Exobrain::Message::Raw;

# ABSTRACT: Connection to the Exobrain bus
our $VERSION = '1.08'; # VERSION


my $context  = ZMQ::Context->new;           # Context is always shared.
my $endpoint = 'tcp://localhost:3568/';     # TODO: From config file?
my $router   = Exobrain::Router->new;

has context   => ( is => 'ro', default => sub { $context } );
has router    => ( is => 'ro', default => sub { $router  } );
has type      => ( is => 'ro', );   # TODO: Type
has subscribe => ( is => 'rw', isa => 'Str', default => '' );
has _socket   => ( is => 'rw' );
has exobrain  => ( is => 'ro', isa => 'Exobrain' );

sub BUILD {



( run in 0.385 second using v1.01-cache-2.11-cpan-beeb90c9504 )