opentok-accelerator-core
Advanced tools
Comparing version 2.0.2 to 2.0.5
32
API.md
# OpenTok Accelerator Core API Methods | ||
### `@constructor` | ||
**Parameters** | ||
**options**: `Object` | ||
- **options.credentials**: `Object` (required) | ||
- **options.name**: `String` A name for your core instance | ||
- **options.packages**: `Array` | ||
- **options.streamContainers**: `Function` | ||
- **options.controlsContainer**: `String` | ||
* * * | ||
@@ -103,20 +117,2 @@ | ||
### `init(options)` | ||
*Initialize accelerator core* | ||
**Parameters** | ||
**options**: `Object` Initialize the accelerator pack | ||
- **options.credentials**: `Object` | ||
- **options.packages**: `Array` | ||
- **options.streamContainers**: `Function` | ||
- **options.controlsContainer**: `String` | ||
### `off(event, callback)` | ||
@@ -123,0 +119,0 @@ |
@@ -67,2 +67,3 @@ 'use strict'; | ||
validateCredentials(options.credentials); | ||
this.name = options.name; | ||
@@ -769,7 +770,7 @@ // Init analytics | ||
}); | ||
Object.defineProperty(this, 'unsubscibe', { | ||
Object.defineProperty(this, 'unsubscribe', { | ||
enumerable: true, | ||
writable: true, | ||
value: function value(subscriber) { | ||
return _this.communication.unsubscibe(subscriber); | ||
return _this.communication.unsubscribe(subscriber); | ||
} | ||
@@ -776,0 +777,0 @@ }); |
@@ -46,3 +46,3 @@ 'use strict'; | ||
var otkanalyticsData = { | ||
clientVersion: 'js-vsol-2.0.2', // x.y.z filled by npm build script | ||
clientVersion: 'js-vsol-2.0.5', // x.y.z filled by npm build script | ||
source: source, | ||
@@ -49,0 +49,0 @@ componentId: 'acceleratorCore', |
{ | ||
"name": "opentok-accelerator-core", | ||
"version": "2.0.2", | ||
"version": "2.0.5", | ||
"description": "Opentok Accelerator Core", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/opentok/accelerator-core-js", |
@@ -48,2 +48,3 @@ /* global OT */ | ||
validateCredentials(options.credentials); | ||
this.name = options.name; | ||
@@ -527,3 +528,3 @@ // Init analytics | ||
*/ | ||
unsubscibe = subscriber => this.communication.unsubscibe(subscriber) | ||
unsubscribe = subscriber => this.communication.unsubscribe(subscriber) | ||
@@ -530,0 +531,0 @@ /** |
Sorry, the diff of this file is too big to display
634587
14755