AnyEvent::XMPP::Ext::Receipts(3pm) | User Contributed Perl Documentation | AnyEvent::XMPP::Ext::Receipts(3pm) |
AnyEvent::XMPP::Ext::Receipts - XEP-0184 message receipts
use AnyEvent::XMPP::Ext::Disco; use AnyEvent::XMPP::Ext::Receipts; my $disco = AnyEvent::XMPP::Ext::Disco->new(); $xmpp->add_extension($disco); my $receipts = AnyEvent::XMPP::Ext::Receipts->new(disco => $disco); $xmpp->add_extension($receipts); $disco->enable_feature($receipts->disco_feature);
This module adds support for XEP-0184 message receipts.
Message receipts provide a way to verify that messages were received by the recipient, as long as the recipient's client supports it.
Note that you need to send messages with message receipts to full Jabber IDs (e.g. jabber@example.com/android3948128), not bare Jabber IDs (e.g. jabber@example.com).
The following keys can be specified:
This is required.
Defaults to 30 (seconds).
Set to 0 to disable automatic re-sending.
Here is an example with all keys set:
my $receipts = AnyEvent::XMPP::Ext::Receipts->new( disco => $disco, auto_resend => 30, debug => 1, );
Michael Stapelberg, "<michael at stapelberg.de>"
Copyright 2012 Michael Stapelberg
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-12-06 | perl v5.36.0 |