1Data::AMF::Message(3) User Contributed Perl DocumentationData::AMF::Message(3)
2
3
4
6 Data::AMF::Message - AMF Message class
7
9 use Data::AMF::Packet;
10
11 # get message
12 my $packet = Data::AMF::Packet->deserialize($amf_packet);
13 my $messages = $packet->messages;
14
15 # do something about it
16 my $first_request = $messages->[0];
17
18 # and return response
19 my $response = $first_request->result($perl_object_you_want_to_return);
20
22 Data::AMF::Message is an object class for AMF Packet Message.
23
25 Data::AMF::Packet, Catalyst::Controller::FlashRemoting
26
28 new
29 Create new Data::AMF::Message object.
30
31 result($result)
32 Return normal response AMF Message object against current request of
33 AMF Message.
34
35 error($error)
36 Return error response AMF Message object against current request of AMF
37 Message.
38
40 Daisuke Murase <typester@cpan.org>
41
43 This program is free software; you can redistribute it and/or modify it
44 under the same terms as Perl itself.
45
46 The full text of the license can be found in the LICENSE file included
47 with this module.
48
49
50
51perl v5.34.0 2022-01-21 Data::AMF::Message(3)