Methods
(static) fetchChatSettings(optionsopt) → {Promise.<Object>}
- Description:
- Fetches chat settings for the current user, including token, API key, and channel names.
- Source:
Example
fetchChatSettings({ brand: 'singeo', liveEventIsGlobal: true })
.then(data => console.log(data))
.catch(error => console.error(error));
Parameters:
| Name |
Type |
Attributes |
Default |
Description |
options |
Object
|
<optional>
|
{}
|
Options for chat settings fetch.
Properties
| Name |
Type |
Attributes |
Default |
Description |
brand |
string
|
null
|
<optional>
|
null
|
The brand context (e.g., "drumeo", "singeo"). |
liveEventIsGlobal |
boolean
|
<optional>
|
false
|
Whether the request is for a global live event. |
|
Returns:
- A promise that resolves to chat settings including token and channel names.
-
Type
-
Promise.<Object>