AnyEvent::XMPP::Ext::Pubsub(3pm)

AnyEvent::XMPP::Ext::Pubsub3pm

Implements xep-0060: publish-subscribe

Usage

   my $con = AnyEvent::XMPP::Connection->new (...);
   $con->add_extension (my $ps = AnyEvent::XMPP::Ext::Pubsub->new);
   ...

Overview

This module implements all tasks of handling the publish subscribe mechanism. (partially implemented)

Methods

new

This is the constructor for a pubsub object. It takes no further arguments.

delete_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback

Try to remove a node.

create_node ($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback

Try to create a node.

subscribe_node($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback

Try to retrieve items.

unsubscribe_node($con, $uri, $bc)> $con is the connection already established, $uri is the name of the node to be created $cb is the callback

Try to unsubscribe from a node.

publish_item($con, $uri, $create_cb, $cb) $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

Try to publish an item.

retrive_items($con, $uri, $cb) $con is the connection already established, $uri is the name of the node to be created $cb is the callback

Try to retrieve items.

retrive_item($con, $uri, $id, $cb) $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

Try to retrieve item.

Contributors

Chris Miceli - additional work on the pubsub extension

Releases

8 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12
  6. 13
  7. Arch

Author

Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"

From perl-anyevent-xmpp 0.55-7 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.