@livetiles/qasimodo-react
v0.2.29
Published
Provides React components for Qasimodo
Downloads
88
Readme
Qasimodo Components React
The Qasimodo Components for React allows to setup a moderated chat for LiveTiles Reach events in custom third party web applications.
Getting Started
$ npm i qasimodo-react
const App = () => {
const token = "A JWT bearer token";
const subscriptionId = "the subscription ID";
const config = {
apiEndpoint: "the api endpoint",
reachApiEndpoint: "the reach api endpoint",
webSocketsEndpoint: "the webSockets endpoint"
};
const sessionId = "the session ID";
return (
<QasiLibraryContextProvider
config={config}
subscriptionId={subscriptionId}
onRequestToken={async () => Promise.resolve(token)}
>
<SessionPage sessionId={sessionId}/>
</QasiLibraryContextProvider>
)
}