class

XMPP::Stanza::Presence

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

Presence Packet Presence implements RFC 6120 - A.5 Client Namespace (a part) Presence stanzas are used to express an entity's current network availability (offline or online, along with various sub-states of the latter and optional user-defined descriptive text), and to notify other entities of that availability. Presence stanzas are also used to negotiate and manage subscriptions to the presence of other entities.

Constructors

new(xml : String)
Source
new(node : XML::Node)
Source

Class methods

xml_name
Source

Instance methods

error
Source
error=(error : Error | Nil)
Source
extensions
Source
extensions=(extensions : Array(PresExtension))
Source
get(type : PresExtension.class)

get search and extracts a specific extension on a presence stanza. it will return extension instance if found on stanza else return nil

Source
name
Source
priority
Source
priority=(priority : Int8)
Source
show
Source
show=(show : String)
Source
status
Source
status=(status : String)
Source
to_xml(xml : XML::Builder)
Source