0.2.4 • Published 1 year ago
mui-chat-widget v0.2.4
Sportstalk React Chat
1. Installation
- Using npm:
npm install sportstalk-react-chat --save
- Using yarn:
yarn add sportstalk-react-chat
2. Dependency
This library version using the Sportstalk Chat SDK v3.17
3. Examples
Development
yarn start
yarn build
Usages
- Read
StyleCustomization.md
for knowing how to customizing styles via CSS classes. - Read more about the sdk we are using here: https://sportstalk-sdk-javascript.readthedocs.io/en/latest/
Methods
Summary
initialize()
window.ChatWidget.initialize(config);
Sets configuration to initialize the widget
Parameters:
Name | Type | Required | Description |
---|---|---|---|
appId | string | Yes | Sportstalk chat app ID |
apiToken | string | Yes | Your Chat app token |
endpoint | string | No | Custom sportstalk chat endpoint |
Note: you should use a proxy to hide your token and restrict behavior to specific domains on the web.