MsgPack::RPC::Message - a MessagePack-RPC notification
version 2.0.3
use MsgPack::RPC; my $rpc = MsgPack::RPC->new( io => '127.0.0.1:6543' ); $rpc->emit( some_notification => 'MsgPack::RPC::Message', args => [ 1..5 ] );
MsgPack::RPC::Message extends the Beam::Event class, and encapsulates a notification received by the MsgPack::RPC object. Requests are encapsulated by the sub-class MsgPack::RPC::Message::Request.
MsgPack::RPC::Message
The constructor accepts a single argument, args, which is the struct holding the arguments of the notification itself.
args
Yanick Champoux <yanick@cpan.org>
This software is copyright (c) 2019, 2017, 2016, 2015 by Yanick Champoux.
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 MsgPack::RPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MsgPack::RPC
CPAN shell
perl -MCPAN -e shell install MsgPack::RPC
For more information on module installation, please visit the detailed CPAN module installation guide.