@ujet/websdk-headless
v3.43.4
Published
A prebuilt infrastructure for communicating with your CCaaS servers!
Readme
Headless WebSDK
A prebuilt infrastructure for communicating with your CCaaS servers!
Install
npm install @ujet/websdk-headless --saveUsage
import { Client } from "@ujet/websdk-headless"
async function authenticate() {
const resp = await fetch("/your-auth-endpoint")
const data = await resp.json()
return { token: data.token }
}
const client = new Client({
companyId: "YOUR-COMPANY-ID",
tenant: "YOUR-TENANT-NAME",
authenticate: authenticate,
})