Socket
Socket
Sign inDemoInstall

kcn

Package Overview
Dependencies
7
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kcn

Kurento client node.js module


Version published
Maintainers
1
Created

Readme

Source

KCN

Kurento client node.js module, based on suldashi typescript libray.


Usage

const classes = require('./lib/kcn')

let client = new classes.KCN('ws://localhost:8888/kurento')

async function ping () {
  let response = await client.ping()
  console.log(response)
}

async function sampleWiring () {
  let pipeline = await client.createPipeline() // backbone
  let webRTCEndpoint = await client.createWebRTCEndpoint(pipeline) // add user
  // ...
  let res = await client.releaseElement(pipeline) // release resources
  return res
}

ping()
sampleWiring()

Sample ping response from Kurento media server:

{id: "915db4f6-a751-4edf-b81a-6dd54a36e8ed", jsonrpc: "2.0", result: Object}

TODO

  • Porting code to JavaScript.
  • Support for missing features i.e. recorder, filters...
  • Refactoring to minimize dependencies on external libraries.

JavaScript Style Guide

Keywords

FAQs

Last updated on 30 Sep 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc