genesys-cloud-streaming-client
Advanced tools
Comparing version 13.0.0-branch.stanza12.16 to 13.0.0-branch.stanza122.1
@@ -9,3 +9,2 @@ "use strict"; | ||
const events_1 = require("events"); | ||
const utils_1 = require("../utils"); | ||
class GenesysCloudMediaSession extends jingle_1.MediaSession { | ||
@@ -16,2 +15,7 @@ constructor(options, sessionType, allowIPv6) { | ||
this.allowIPv6 = allowIPv6; | ||
// babel does not like the typescript recipe for multiple extends so we are hacking this one | ||
const eventEmitter = new events_1.EventEmitter(); | ||
Object.keys(eventEmitter.__proto__).forEach((name) => { | ||
this[name] = eventEmitter[name]; | ||
}); | ||
if (!options.optOutOfWebrtcStatsTelemetry) { | ||
@@ -78,2 +82,1 @@ this.setupStatsGatherer(); | ||
exports.GenesysCloudMediaSession = GenesysCloudMediaSession; | ||
utils_1.applyMixins(GenesysCloudMediaSession, [events_1.EventEmitter]); |
@@ -6,3 +6,2 @@ import { __awaiter } from "tslib"; | ||
import { EventEmitter } from 'events'; | ||
import { applyMixins } from '../utils'; | ||
export class GenesysCloudMediaSession extends MediaSession { | ||
@@ -13,2 +12,7 @@ constructor(options, sessionType, allowIPv6) { | ||
this.allowIPv6 = allowIPv6; | ||
// babel does not like the typescript recipe for multiple extends so we are hacking this one | ||
const eventEmitter = new EventEmitter(); | ||
Object.keys(eventEmitter.__proto__).forEach((name) => { | ||
this[name] = eventEmitter[name]; | ||
}); | ||
if (!options.optOutOfWebrtcStatsTelemetry) { | ||
@@ -74,2 +78,1 @@ this.setupStatsGatherer(); | ||
} | ||
applyMixins(GenesysCloudMediaSession, [EventEmitter]); |
@@ -9,3 +9,2 @@ "use strict"; | ||
const events_1 = require("events"); | ||
const utils_1 = require("../utils"); | ||
class GenesysCloudMediaSession extends jingle_1.MediaSession { | ||
@@ -16,2 +15,7 @@ constructor(options, sessionType, allowIPv6) { | ||
this.allowIPv6 = allowIPv6; | ||
// babel does not like the typescript recipe for multiple extends so we are hacking this one | ||
const eventEmitter = new events_1.EventEmitter(); | ||
Object.keys(eventEmitter.__proto__).forEach((name) => { | ||
this[name] = eventEmitter[name]; | ||
}); | ||
if (!options.optOutOfWebrtcStatsTelemetry) { | ||
@@ -78,2 +82,1 @@ this.setupStatsGatherer(); | ||
exports.GenesysCloudMediaSession = GenesysCloudMediaSession; | ||
utils_1.applyMixins(GenesysCloudMediaSession, [events_1.EventEmitter]); |
{ | ||
"name": "genesys-cloud-streaming-client", | ||
"version":"13.0.0-branch.stanza12.16", | ||
"version":"13.0.0-branch.stanza122.1", | ||
"description": "client for the Genesys Cloud Streaming APIs (websocket/xmpp interface)", | ||
@@ -5,0 +5,0 @@ "repository": "https:github.com/purecloudlabs/genesys-cloud-streaming-client", |
@@ -6,3 +6,2 @@ import { MediaSession } from 'stanza/jingle'; | ||
import { EventEmitter } from 'events'; | ||
import { applyMixins } from '../utils'; | ||
import { JingleReason, JingleInfo } from 'stanza/protocol'; | ||
@@ -18,2 +17,9 @@ | ||
// babel does not like the typescript recipe for multiple extends so we are hacking this one | ||
const eventEmitter = new EventEmitter(); | ||
Object.keys((eventEmitter as any).__proto__).forEach((name) => { | ||
this[name] = eventEmitter[name]; | ||
}); | ||
if (!options.optOutOfWebrtcStatsTelemetry) { | ||
@@ -104,3 +110,4 @@ this.setupStatsGatherer(); | ||
applyMixins(GenesysCloudMediaSession, [ EventEmitter ]); | ||
// applyMixins(GenesysCloudMediaSession, [ EventEmitter ]); | ||
// util.inherits(GenesysCloudMediaSession, EventEmitter); | ||
export interface GenesysCloudMediaSession extends StrictEventEmitter<EventEmitter, SessionEvents> { } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3100268
39081