This namespace lets you access the BOSH tokens
- Source:
Methods
(static) get(idopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string |
<optional> |
The type of token to return ('rid' or 'sid'). |
- Source:
Returns:
'string' A token, either the RID or SID token depending on what's asked for.
Example
_converse.api.tokens.get('rid');
(static) get(idopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string |
<optional> |
The type of token to return ('rid' or 'sid'). |
Returns:
'string' A token, either the RID or SID token depending on what's asked for.
Example
_converse.api.tokens.get('rid');