Net::WAMP::Role::Caller - Caller role for Net::WAMP
package MyWAMP; use parent qw( Net::WAMP::Role::Caller ); sub on_ERROR_CALL { my ($self, $ERROR_msg, $orig_CALL_msg) = @_; ... } sub on_RESULT { my ($self, $RESULT_msg, $orig_CALL_msg) = @_; ... } package main; my $wamp = MyWAMP->new( on_send => sub { ... } ); my $call_msg = $wamp->send_CALL( {}, 'some.topic' ); $wamp->send_CANCEL( $call_msg->get('Request') );
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.