<commit_before># Simple Node Client for Kurento Server

Stability: EXPERIMENTAL

This is lightweight alternative client to https://github.com/Kurento/kurento-client-js.

## Functions

* `kurento(url, callback, reporter)` - `callback(err, client)`, `reporter(message)`
* `client.create(objectType, constructorParams, callback)` - `callback(err, objectId)`
* `client.invoke(objectId, operation, operationParams, callback)` - `callback(err, returnValue)`
* `client.release(objectId, callback)` - `callback(err)`
* `client.ping(interval, callback)` - `callback(err, pong)`
* `client.subscribe(objectId, eventType, eventHandler, callback)` - `eventHandler(eventData)`, `callback(err, subscriptionId)`
* `client.unsubscribe(subscriptionId, objectId, callback)` - `callback(err)`
* `client.getSessionId()`
* `client.setSessionId(sessionId)`
* `client.close()`

## Usage

Simple unfinished example:

```javascript
const kurento = require('kurento-somple-client-js');
const autoInject = require('async/autoInject');
const each = require('async/each');
const config = require('config');
<commit_msg>import typo fixed<commit_after># Simple Node Client for Kurento Server

Stability: EXPERIMENTAL

This is lightweight alternative client to https://github.com/Kurento/kurento-client-js.

## Functions

* `kurento(url, callback, reporter)` - `callback(err, client)`, `reporter(message)`
* `client.create(objectType, constructorParams, callback)` - `callback(err, objectId)`
* `client.invoke(objectId, operation, operationParams, callback)` - `callback(err, returnValue)`
* `client.release(objectId, callback)` - `callback(err)`
* `client.ping(interval, callback)` - `callback(err, pong)`
* `client.subscribe(objectId, eventType, eventHandler, callback)` - `eventHandler(eventData)`, `callback(err, subscriptionId)`
* `client.unsubscribe(subscriptionId, objectId, callback)` - `callback(err)`
* `client.getSessionId()`
* `client.setSessionId(sessionId)`
* `client.close()`

## Usage

Simple unfinished example:

```javascript
const kurento = require('kurento-simple-client-js');
const autoInject = require('async/autoInject');
const each = require('async/each');
const config = require('config');

{'fraction_non_alphanumeric': 0.15948670944087992, 'fraction_numerical': 0.0, 'mean_word_length': 7.2377358490566035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3882411', 'n_tokens_mistral': 693, 'n_tokens_neox': 686, 'n_words': 146}