# Headless WebSDK
A prebuilt infrastructure for communicating with your CCaaS servers!

## Install

```
npm install @ujet/websdk-headless --save
```

## Usage

```js
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,
})
```
