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.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $cb is 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.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $cb is the callback.
  • subscribe_node($con, $uri, $cb) β€” Try to retrieve items.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $cb is the callback.

the original literally says "retrieve items" here β€” iykyk.

  • unsubscribe_node($con, $uri, $cb) β€” Try to unsubscribe from a node.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $cb is the callback.
  • publish_item($con, $uri, $create_cb, $cb) β€” Try to publish an item.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $create_cb is the callback.
    • $cb is the callback.
  • retrive_items($con, $uri, $cb) β€” Try to retrieve items.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $cb is 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.
    • $con is the connection already established.
    • $uri is the name of the node to be created.
    • $id is the id of the entry to be retrieved.
    • $cb is 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 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