0.2.4 • Published 1 year ago

mui-chat-widget v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

Methods

Summary

initialize()

window.ChatWidget.initialize(config);

Sets configuration to initialize the widget

Parameters:

NameTypeRequiredDescription
appIdstringYesSportstalk chat app ID
apiTokenstringYesYour Chat app token
endpointstringNoCustom sportstalk chat endpoint

Note: you should use a proxy to hide your token and restrict behavior to specific domains on the web.

setUser()

joinRoom()

sendAnnouncement()

sendAdvertisement()