class

XMPP::ComponentDisco::DiscoInfo

Inherits Reference / Object

DiscoInfo holds the service discovery information for a component

Constructors

Instance methods

add_feature(feature : String)

Add a feature to the component

Source
add_features(features : Array(String))

Add multiple features at once

Source
add_identity(category : String, type : String, name : String = "", xml_lang : String = "")

Add an identity to the component

Source
add_node(node : String, info : DiscoNodeInfo)

Add a node with its own disco info

Source
build_response(node : String = "") : Stanza::DiscoInfo

Build a disco#info response

Source
features
Source
features=(features : Array(String))
Source
get_node(node : String) : DiscoNodeInfo | Nil

Get disco info for a specific node

Source
identities
Source
identities=(identities : Array(DiscoIdentity))
Source
nodes
Source
nodes=(nodes : Hash(String, DiscoNodeInfo))
Source