npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iris-embedded-sdk

v3.1.11

Published

node JS library for IRIS SDK

Downloads

25

Readme

IRIS Rtc Embedded SDK - A node js version of IRIS SDK

iris-embedded-sdk is a node js version of IRIS SDK targeted towards headless or native embedded implementations/products. It installs as a service on the embedded linux or linux enviornment and the APIs are accessible through a [REST interface]

API support

This SDK exposes local API interface and can be run locally as a service

Installation

npm i iris-embedded-sdk

How to Use

Initializing

IRIS Rtc Embedded SDK initializes with the default config during service startup.

RtcConfig.js - the default config

RtcConfig.json={
    urls:{
            appServer: <>, // Iris App server 
            authManager: <>, // Iris Auth Manager 
            idManager: <>, // Iris Identity manager
            eventManager: <>, // Iris Event Manager
            notificationManager: '', // Iris Notification Manager
        },
    port: <>, // Default port where service starts listening
    pingInterval: <>, // ping interval to keep web socket alive
    presInterval: <>, // presenceIQ interval
    reconnectInterval: <>, // reconnection interval
    statsInterval: <>, // stats to post interval 
    useAnonymousLogin: <>, // Set to use anonymous login
    useAutoAnswer: <>, // Set to auto answer
    useBridge: <>, // Set to use video bridge
    useEmPrivateIQ: <>, // Set to use private IQ.
    logLevel: <>, // 0: Error, 1: Warning, 2: Info, 3: Verbose
    webrtcLogs: <>, // Set to enable detailed libjingle logs
    loadCount: <>, // load testing count
    appKey: <>, // Set here Iris app key
    appSecret: <>, // Set here Iris app secret
    authMgrPath: <>, // Iris auth manager url
    audioForSessions: <>, // to enable/disable audio
    sdkVersion: <>, // sdk version
}

Starting Service

Run this command to start embededded SDK service:

$ node IrisRtcSdk.js

Creating Connection

Register API allows to handle the public id entered by application This public id will be exchanged with IRIS backend and a token will be obtained and makes the connection with IRIS backend.

 curl -v -X PUT -H "Content-Type: application/json" -d '{"uniqueId":"1234","type":"macid","domain":"service.example.net"}' http://localhost:8091/v1/rtc/register

Create Session

Create Session API allows to initiate outgoing calls using embedded SDK

 curl -v -X PUT -H "Content-Type: application/json" -d '{"type":"video","roomname":"testroom"}' http://localhost:8091/v1/rtc/createSession

Join Session

Join Session API allows to join and incoming call using embedded SDK

 curl -v -X PUT -H "Content-Type: application/json" -d '{"type":"audio", "roomid":"***", "roomtoken":"***","roomtokenexpirytime":"****", rtcserver:"***", traceid:"***"}' http://localhost:8091/v1/rtc/joinSession

End Session

End Session API allows to end the current sessions using embedded SDK

curl -v -X PUT -H "Content-Type: application/json" -d '{"type":"video","sessionId":"11321201"}' http://localhost:8091/v1/rtc/endSession

Get Events

Events API allows to send events using embedded SDK

var EventSource = require('eventsource');

var es = new EventSource('http://localhost:8091/v1/rtc/events');

es.onmessage = function(e) {
    var data = JSON.parse(e.data);
    console.log(data);
};