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()
let webRTCEndpoint = await client.createWebRTCEndpoint(pipeline)
let res = await client.releaseElement(pipeline)
return res
}
ping()
sampleWiring()
Sample ping response from Kurento media server:
{id: "915db4f6-a751-4edf-b81a-6dd54a36e8ed", jsonrpc: "2.0", result: Object}
TODO