From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Net::WAMP::Role::Caller - Caller role for Net::WAMP

SYNOPSIS

package MyWAMP;
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') );

DESCRIPTION

See the main Net::WAMP documentation for more background on how to use this class in your code.