Skip to content

januscaler/nodejs-sdk

Repository files navigation

nodejs-sdk

A javascript server side sdk for januscaler built on top of core-januscaler-js for developing server side apps

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published