Net::WAMP::Role::Publisher - Publisher role for Net::WAMP
package MyWAMP; use parent qw( Net::WAMP::Role::Publisher ); sub on_PUBLISHED { ... } sub on_ERROR_PUBLISH { ... } package main; my $wamp = MyWAMP->new( on_send => sub { ... } ); $wamp->send_PUBLISH( {}, 'some.topic', \@args, \%args_kv );
See the main Net::WAMP documentation for more background on how to use this class in your code.
To install Net::WAMP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::WAMP
CPAN shell
perl -MCPAN -e shell install Net::WAMP
For more information on module installation, please visit the detailed CPAN module installation guide.