Converse converse.js

Namespace: pubsub

_converse.api.pubsub

The "pubsub" namespace groups methods relevant to PubSub

Source:

Methods

(static) publish(jid, node, item, options, strict_options)

Publshes an item to a PubSub node

Parameters:
Name Type Description
jid string

The JID of the pubsub service where the node resides.

node string

The node being published to

item Strophe.Builder

The Strophe.Builder representation of the XML element being published

options object

An object representing the publisher options (see https://xmpp.org/extensions/xep-0060.html#publisher-publish-options)

strict_options boolean

Indicates whether the publisher options are a strict requirement or not. If they're NOT strict, then Converse will publish to the node even if the publish options precondication cannot be met.

Source:

(static) publish(jid, node, item, options, strict_options)

Publshes an item to a PubSub node

Parameters:
Name Type Description
jid string

The JID of the pubsub service where the node resides.

node string

The node being published to

item Strophe.Builder

The Strophe.Builder representation of the XML element being published

options object

An object representing the publisher options (see https://xmpp.org/extensions/xep-0060.html#publisher-publish-options)

strict_options boolean

Indicates whether the publisher options are a strict requirement or not. If they're NOT strict, then Converse will publish to the node even if the publish options precondication cannot be met.

Source:

_converse.api.pubsub

The "pubsub" namespace groups methods relevant to PubSub

Source:

Methods

(static) publish(jid, node, item, options, strict_options)

Publshes an item to a PubSub node

Parameters:
Name Type Description
jid string

The JID of the pubsub service where the node resides.

node string

The node being published to

item Strophe.Builder

The Strophe.Builder representation of the XML element being published

options object

An object representing the publisher options (see https://xmpp.org/extensions/xep-0060.html#publisher-publish-options)

strict_options boolean

Indicates whether the publisher options are a strict requirement or not. If they're NOT strict, then Converse will publish to the node even if the publish options precondication cannot be met.

Source:

(static) publish(jid, node, item, options, strict_options)

Publshes an item to a PubSub node

Parameters:
Name Type Description
jid string

The JID of the pubsub service where the node resides.

node string

The node being published to

item Strophe.Builder

The Strophe.Builder representation of the XML element being published

options object

An object representing the publisher options (see https://xmpp.org/extensions/xep-0060.html#publisher-publish-options)

strict_options boolean

Indicates whether the publisher options are a strict requirement or not. If they're NOT strict, then Converse will publish to the node even if the publish options precondication cannot be met.

Source: