class

XMPP::Stanza::PubSubEvent

Inherits XMPP::Stanza::MsgExtension / XMPP::Stanza::Extension / XMPP::Stanza::Packet / Reference / Object

PubSubEvent is the message payload defined by XEP-0163 - Personal Eventing Protocol. When a user publishes an item on one of their PEP nodes, the server delivers a notification to each subscriber:

<message from='juliet@capulet.lit/balcony' to='romeo@montague.lit/orchard'> <event xmlns='http://jabber.org/protocol/pubsub#event'> <items node='http://jabber.org/protocol/tune'> <item> <tune xmlns='http://jabber.org/protocol/tune'> ... </tune> </item> </items> </event> </message>

It reuses the PubSub Item/Items data models for the notification payload. See: https://xmpp.org/extensions/xep-0163.html

Constructors

new(node : XML::Node)
Source

Class methods

xml_name
Source

Instance methods

items
Source
items=(items : Items | Nil)
Source
name
Source
retract
Source
retract=(retract : Retract | Nil)
Source
to_xml(xml : XML::Builder)
Source