@livetiles/qasimodo-react
TypeScript icon, indicating that this package has built-in type declarations

0.2.29 • Public • Published

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>
    )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @livetiles/qasimodo-react

Weekly Downloads

2

Version

0.2.29

License

ISC

Unpacked Size

3.44 MB

Total Files

100

Last publish

Collaborators

  • cycl