Converse converse.js

Namespace: connection

_converse.api.connection

This grouping collects API functions related to the XMPP connection.

Source:

Methods

(static) authenticated() → {boolean}

Source:
Returns:

Whether we're authenticated to the XMPP server or not

Type
boolean

(static) authenticated() → {boolean}

Source:
Returns:

Whether we're authenticated to the XMPP server or not

Type
boolean

(static) connected() → {boolean}

Source:
Returns:

Whether there is an established connection or not.

Type
boolean

(static) connected() → {boolean}

Source:
Returns:

Whether there is an established connection or not.

Type
boolean

(static) disconnect()

Terminates the connection.

Source:

(static) disconnect()

Terminates the connection.

Source:

(static) isType() → {boolean}

Utility method to determine the type of connection we have

Source:
Returns:
Type
boolean

(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:

(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:

_converse.api.connection

This grouping collects API functions related to the XMPP connection.

Source:

Methods

(static) authenticated() → {boolean}

Source:
Returns:

Whether we're authenticated to the XMPP server or not

Type
boolean

(static) authenticated() → {boolean}

Source:
Returns:

Whether we're authenticated to the XMPP server or not

Type
boolean

(static) connected() → {boolean}

Source:
Returns:

Whether there is an established connection or not.

Type
boolean

(static) connected() → {boolean}

Source:
Returns:

Whether there is an established connection or not.

Type
boolean

(static) disconnect()

Terminates the connection.

Source:

(static) disconnect()

Terminates the connection.

Source:

(static) isType() → {boolean}

Utility method to determine the type of connection we have

Source:
Returns:
Type
boolean

(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:

(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: