This library provides a wrapper around the Lveswitch Javascript SDK, used for cloud based WebRTC and SIP functionality. More on LiveSwitch can be found here.
The liveswitch JS SDK is a script file that is attached the frontend application via a <script>
tag. It exports and fm
object that is used by liveswitch-wrapper.
<script src="./lib/fm.liveswitch.js"></script>
The library can be used in browser side JS environments as shown below.
import {LiveSwitch} from './liveswitch-wrapper';
const liveswitch = new LiveSwitch({
applicationId,
sharedSecret,
deviceId
});
await liveswitch.register(...)
await liveswitch.joinChannel(...)