Skip to content

A javascript browser sdk implementing all januscaler business logic on top of core-januscaler-js

License

Notifications You must be signed in to change notification settings

januscaler/browser-sdk

Repository files navigation

browser-sdk

A javascript browser side sdk for januscaler built on top of core-januscaler-js

Consumer Level Architecture

  1. VideoCall Operations Example
import { JanuScaler } from '@januscaler/browser-sdk';

const client = new JanuScaler({
	token: `secure access token from backend-sdk or trusted source`
});  

await client.init({ debug: false });  

const videoCallHandle = await client.videoCall.createServiceHandle();  

videoCallHandle.eventStream.subscribe((event) => {});
videoCallHandle.events.onRegistered = (registeredEvent) => {};
videoCallHandle.events.onIncomingCall = (callerEvent) => {};
function registerUser(userNameToRegister) {
	return await videoCallHandle.register(userNameToRegister);
}
function callUser(userNameToCall) {
	return await videoCallHandle.call(userNameToCall)
}

LICENSE

MIT

About

A javascript browser sdk implementing all januscaler business logic on top of core-januscaler-js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published