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:

Copy
Copied
<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.

We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.