Comment on page
SDK
1
<script crossorigin src="https://unpkg.com/@digitalsamba/embedded-sdk"></script>
2
const sambaFrame = DigitalSambaEmbedded.createControl({ url: YOUR_ROOM_URL });
3
sambaFrame.load();
npm install @digitalsamba/embedded-sdk
Add our SDK to the dependency list using your preferred package manager:
npm install @digitalsamba/embedded-sdk
or
yarn install @digitalsamba/embedded-sdk
After installation, use it in your application code by doing the following:
1
import DigitalSambaEmbedded from '@digitalsamba/embedded-sdk';
2
const sambaFrame = DigitalSambaEmbedded.createControl({ url: YOUR_ROOM_URL });
3
sambaFrame.load();
For detailed documentation on the initialization process, read about the DigitalSambaEmbedded class and the initialization code examples.
The SDK is written in TypeScript, so type definitions are also available:
import { SendMessageType, ReceiveMessageType /* ...etc */ } from '@digitalsamba/embedded-sdk';
Last modified 1mo ago