Converse converse.js

Namespace: connection

_converse.api.connection

This grouping collects API functions related to the XMPP connection.

Source:

Methods

(static) connected() → {boolean}

Source:
Returns:

Whether there is an established connection or not.

Type
boolean

(static) disconnectkjjjkk()

Terminates the connection.

Source:

(static) isType() → {boolean}

Utility method to determine the type of connection we have

Source:
Returns:
Type
boolean

(static) reconnect()

Can be called once the XMPP connection has dropped and we want to attempt reconnection. Only needs to be called once, if reconnect fails Converse will attempt to reconnect every two seconds, alternating between BOSH and Websocket if URLs for both were provided.

Source: