NAME
ZMQ::AnyEvent::SUB - Asynchronously serviced ZeroMQ SUB Socket
VERSION
version 0.001
ATTRIBUTES
endpoint
The endpoint attribute must be given a string representing the ZeroMQ socket to work with.
on_read
The on_read attribute must be given a coderef that will be called whenever a new message is received. If the callback returns a result, that will be sent as a reply to the sender.
METHODS
subscribe
Subscribe the socket to the given topic. These subscriptions use pure prefix matching, so you have to keep it simple.
unsubscribe
Unsubscribe the socket to the given topic.
AUTHOR
Michael Alan Dorman <mdorman@ironicdesign.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ironic Design, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.