AnyEven...::Pubsub(3)
π NAME π
AnyEvent::XMPP::Ext::Pubsub β okay so this is the AnyEven...::Pubsub(3) page (User Contributed Perl Documentation, bestie β¨), and it implements XEP-0060: Publish-Subscribe. slay.
β¨ SYNOPSIS β¨
my $con = AnyEvent::XMPP::Connection->new (...);
$con->add_extension (my $ps = AnyEvent::XMPP::Ext::Pubsub->new);
...
this snippet ate, honestly: make the connection, add the extension, and you're in. π
π¦ DESCRIPTION π¦
This module implements all tasks of handling the publish subscribe mechanism. (partially implemented)
Vibe check: it's giving "handles the whole publish-subscribe thing," but also (partially implemented) β so like, it's not fully finished, no cap. π
π METHODS π
newβ This is the constructor for a pubsub object. It takes no further arguments. π«Άdelete_node($con, $uri, $cb)β Try to remove a node.$conis the connection already established.$uriis the name of the node to be created.$cbis the callback.
yes, "remove" but the arg says "created" β I'm not fixing the original, bestie. π
create_node ($con, $uri, $cb)β Try to create a node.$conis the connection already established.$uriis the name of the node to be created.$cbis the callback.
subscribe_node($con, $uri, $cb)β Try to retrieve items.$conis the connection already established.$uriis the name of the node to be created.$cbis the callback.
the original literally says "retrieve items" here β iykyk.
unsubscribe_node($con, $uri, $cb)β Try to unsubscribe from a node.$conis the connection already established.$uriis the name of the node to be created.$cbis the callback.
publish_item($con, $uri, $create_cb, $cb)β Try to publish an item.$conis the connection already established.$uriis the name of the node to be created.$create_cbis the callback.$cbis the callback.
retrive_items($con, $uri, $cb)β Try to retrieve items.$conis the connection already established.$uriis the name of the node to be created.$cbis the callback.
not a typo on my end β the method name is retrive_items, and it's iconic. π
retrive_item($con, $uri, $id, $cb)β Try to retrieve item.$conis the connection already established.$uriis the name of the node to be created.$idis the id of the entry to be retrieved.$cbis the cb.
π AUTHOR π
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>" π
π CONTRIBUTORS π
Chris Miceli - additional work on the pubsub extension π«Ά
πΈ COPYRIGHT & LICENSE πΈ
Copyright 2007, 2008 Robin Redeker, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
periodt. π
okay bye bestie! Source/version: perl v5.42.2; date: 2026-02-15; manual: AnyEven...::Pubsub(3). mwah π
π¦ where this page comes from
- alpine 3.24: perl-anyevent-xmpp-doc 0.55-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms