This package is published to npm, and can be imported via cdn (ESM>CDN, UNPKG, jsDelivr).
The getToken
method is required and must return a Workgrid User Auth Token (it may be synchronous or asynchronous).
<script type="module">
import Core from '@workgrid-widgets/stream'
new Core({
getToken: () => { ... },
})
</script>