NAME

ZeroMQ::PubSub - ZeroMQ-based event messaging system.

VERSION

Version 0.01

SYNOPSIS

See ZeroMQ::PubSub::Client, ZeroMQ::PubSub::Server

ATTRIBUTES

debug

METHODS

subscribe($event, $callback)

Calls $callback when a message of type $event is received. Can be used on the server or the client.

$callback is called with two arguments: $self (client or server instance) and event parameters.

dispatch_event($msg)

Runs event callbacks for the message based on event type. You probably don't need to call this.

SEE ALSO

ZeroMQ::PubSub::Server, ZeroMQ::PubSub::Client

TODO

* Tests

* Support non-blocking (w/ AnyEvent)

* More flexible event handling (remove MooseX::Event dependency)

AUTHOR

Mischa Spiegelmock, <revmischa at cpan.org>

BUGS

Please report any bugs or feature requests to bug-zeromq-pubsub at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZeroMQ-PubSub. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc ZeroMQ::PubSub

ACKNOWLEDGEMENTS

ZeroMQ

LICENSE AND COPYRIGHT

Copyright 2011 Mischa Spiegelmock.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.