Mercury::Pattern::Bus - A messaging pattern where all peers share messages
version 0.010
The list of peers connected to this bus.
$pat->add_peer( $tx )
Add the given connection as a peer to this bus.
Remove the connection from this bus. Called automatically by the finish handler.
finish
$pat->send_message( $message, $from )
Send a message to all the peers on this bus. If a $from websocket is specified, will not send to that peer (they should know what they sent).
$from
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Mercury, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mercury
CPAN shell
perl -MCPAN -e shell install Mercury
For more information on module installation, please visit the detailed CPAN module installation guide.