Skip to content

Commit

Permalink
Small patch to fix pjf#53
Browse files Browse the repository at this point in the history
  • Loading branch information
techman83 committed May 25, 2014
1 parent 1f3cbe8 commit 9c518ac
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Exobrain.pm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,25 @@ method watch_loop(
}
}

=method zconnect
$exobrain->zconnect();
ZeroMQ takes some time to setup the initial connection. Calling connect
prior to sending your first message will avoid it disappearing.
=cut

method zconnect() {
my $connect = Exobrain::Message::Raw->new(
data => { message => 'Starting Connection...' },
summary => 'Starting Connection...',
namespace => 'Exobrain'
);
select(undef, undef, undef, 0.1); # sleep for 100ms
return $connect;
}

=method notify
$exobrain->notify($msg
Expand Down

0 comments on commit 9c518ac

Please sign in to comment.