Basic Usage

Basic usage with ESM

import { ClientSDK } from '@csm-sdk/client';
const csm = new ClientSDK({
  clientKey: "YOUR_CLIENT_KEY"
})
csm.buildChat({
  user: null,
  config: {
    type: "floating",
  }
})

Basic usage with CDN

<script src="https://client.mediainfokreasindo.com/csm.client.min.js" ></script>
<script>
    let csm = new CSM.ClientSDK({
        clientKey: "YOUR_CLIENT_KEY"
    }); 
    csm.buildChat({
        user: null,
        config: {
            type: "floating"
        }
    }); 
</script>

Last updated