The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

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)

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 2012 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.