---
name: "AnyEvent::XMPP::Ext::Pubsub"
section: "3pm"
platform: "linux"
package: "perl-anyevent-xmpp"
version: "0.55-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/AnyEvent::XMPP::Ext::Pubsub"
---

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

Implements XEP-0060: Publish-Subscribe

## NAME

AnyEvent::XMPP::Ext::Pubsub - Implements XEP-0060: Publish-Subscribe

## SYNOPSIS

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

## DESCRIPTION

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.

## 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.
