Installation
The latest version of Web SDK is available on https://cdn.sinch.com/sinch-chat/latest/sdk.js
.
To install it for use on your web page, add the <script>
tags to the HTML page right before the closing </body>
tag, as in the following example:
<body>
<script>
const script = document.createElement('script');
script.addEventListener("load", async () => {
// Web SDK initialization code
})
script.src = 'https://cdn.sinch.com/sinch-chat/latest/sdk.js';
document.head.appendChild(script);
</script>
</body>
Once the remote script is loaded, the SDK is ready for initialization.