The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

SYNOPSIS

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

DESCRIPTION

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