class

XMPP::Stanza::PEPEventPres

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

PEPEventPres is the presence-carried PEP notification defined by XEP-0223.

When a contact is already subscribed to the publisher's presence, the server delivers a PEP notification as a <x xmlns='...pubsub#event'> child of the presence stanza instead of as a separate message. It carries the same items/retract payload as the message-form PubSubEvent.

Constructors

new(node : XML::Node)
Source
new(xml : String)
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_event

to_event converts the presence form into the shared message-form PubSubEvent model.

Source
to_xml(xml : XML::Builder)
Source