Currently under heavy development. Please check back soon.
npm install clayhead
Use the latest version
https://unpkg.com/clayhead/dist/clayhead.min.js
Or specify a version
https://unpkg.com/clayhead@1.0.3/dist/clayhead.min.js
import { ClayheadClient } from "clayhead";
const { ClayheadClient } = require("clayhead");
<script type="module">
import { ClayheadClient } from "https://unpkg.com/clayhead/dist/clayhead.esm.min.js";
...
</script>
const url = "https://realtime.clayhead.ai?token=...";
const client = new ClayheadClient(url);
In order to authenticate with the realtime API, you must provide a token as part of the URL query.
TODO
TODO