Add WS config env variables (#7)

pull/173/head
Valery Shved 2019-01-11 12:39:14 +03:00 committed by GitHub
parent 0e670bd107
commit a2c3f5323d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

View File

@ -522,7 +522,7 @@ var OpenVidu = /** @class */ (function () {
*/
OpenVidu.prototype.startWs = function (onConnectSucces) {
var config = {
heartbeat: 5000,
heartbeat: process.env.OPENVIDU_BROWSER_PING_PERIOD || 5000,
sendCloseMessage: false,
ws: {
uri: this.wsUri,
@ -533,7 +533,7 @@ var OpenVidu = /** @class */ (function () {
onreconnected: this.reconnectedCallback.bind(this)
},
rpc: {
requestTimeout: 10000,
requestTimeout: process.env.OPENVIDU_BROWSER_PING_TIMEOUT || 10000,
participantJoined: this.session.onParticipantJoined.bind(this.session),
participantPublished: this.session.onParticipantPublished.bind(this.session),
participantUnpublished: this.session.onParticipantUnpublished.bind(this.session),

File diff suppressed because one or more lines are too long

View File

@ -196,7 +196,7 @@ var WebRtcStats = /** @class */ (function () {
'exec': instrumentation.exec,
'component': instrumentation.component,
'stream': 'webRtc',
'type': metricId,
'et_type': metricId,
'stream_type': 'composed_metrics',
'units': units
};
@ -229,7 +229,7 @@ var WebRtcStats = /** @class */ (function () {
'exec': instrumentation.exec,
'component': instrumentation.component,
'stream': 'webRtc',
'type': metricId,
'et_type': metricId,
'stream_type': 'composed_metrics',
'units': units
};
@ -276,7 +276,7 @@ var WebRtcStats = /** @class */ (function () {
'exec': instrumentation.exec,
'component': instrumentation.component,
'stream': 'webRtc',
'type': metricId,
'et_type': metricId,
'stream_type': 'composed_metrics',
'units': units
};
@ -306,7 +306,7 @@ var WebRtcStats = /** @class */ (function () {
'exec': instrumentation.exec,
'component': instrumentation.component,
'stream': 'webRtc',
'type': metricId,
'et_type': metricId,
'stream_type': 'composed_metrics',
'units': units
};

File diff suppressed because one or more lines are too long

View File

@ -609,7 +609,7 @@ export class OpenVidu {
*/
startWs(onConnectSucces: (error: Error) => void): void {
const config = {
heartbeat: 5000,
heartbeat: process.env.OPENVIDU_BROWSER_PING_PERIOD || 5000,
sendCloseMessage: false,
ws: {
uri: this.wsUri,
@ -620,7 +620,7 @@ export class OpenVidu {
onreconnected: this.reconnectedCallback.bind(this)
},
rpc: {
requestTimeout: 10000,
requestTimeout: process.env.OPENVIDU_BROWSER_PING_TIMEOUT || 10000,
participantJoined: this.session.onParticipantJoined.bind(this.session),
participantPublished: this.session.onParticipantPublished.bind(this.session),
participantUnpublished: this.session.onParticipantUnpublished.bind(this.session),