Converse converse.js

Namespace: features

.disco.features

Methods

(static) get(feature, jid) → {promise}

Return a given feature of a disco entity

Parameters:
Name Type Description
feature string

The feature that might be supported. In the XML stanza, this is the var attribute of the <feature> element. For example: http://jabber.org/protocol/muc

jid string

The JID of the entity (and its associated items) which should be queried

Source:
Returns:

A promise which resolves with a list containing _converse.Entity instances representing the entity itself or those items associated with the entity if they support the given feature.

Type
promise
Example
api.disco.features.get(Strophe.NS.MAM, _converse.bare_jid);

(static) get(feature, jid) → {promise}

Return a given feature of a disco entity

Parameters:
Name Type Description
feature string

The feature that might be supported. In the XML stanza, this is the var attribute of the <feature> element. For example: http://jabber.org/protocol/muc

jid string

The JID of the entity (and its associated items) which should be queried

Source:
Returns:

A promise which resolves with a list containing _converse.Entity instances representing the entity itself or those items associated with the entity if they support the given feature.

Type
promise
Example
api.disco.features.get(Strophe.NS.MAM, _converse.bare_jid);

.disco.features

Methods

(static) get(feature, jid) → {promise}

Return a given feature of a disco entity

Parameters:
Name Type Description
feature string

The feature that might be supported. In the XML stanza, this is the var attribute of the <feature> element. For example: http://jabber.org/protocol/muc

jid string

The JID of the entity (and its associated items) which should be queried

Source:
Returns:

A promise which resolves with a list containing _converse.Entity instances representing the entity itself or those items associated with the entity if they support the given feature.

Type
promise
Example
api.disco.features.get(Strophe.NS.MAM, _converse.bare_jid);

(static) get(feature, jid) → {promise}

Return a given feature of a disco entity

Parameters:
Name Type Description
feature string

The feature that might be supported. In the XML stanza, this is the var attribute of the <feature> element. For example: http://jabber.org/protocol/muc

jid string

The JID of the entity (and its associated items) which should be queried

Source:
Returns:

A promise which resolves with a list containing _converse.Entity instances representing the entity itself or those items associated with the entity if they support the given feature.

Type
promise
Example
api.disco.features.get(Strophe.NS.MAM, _converse.bare_jid);