Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit aa27461

Browse files
committed
Add cascading control module and enable https
1 parent 30d1d88 commit aa27461

File tree

8 files changed

+1390
-4
lines changed

8 files changed

+1390
-4
lines changed

scripts/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const originCwd = cwd();
4141
const osScript = path.join(rootDir, 'scripts/detectOS.sh');
4242
const osType = execSync(`bash ${osScript}`).toString().toLowerCase();
4343

44-
const experimentalTargets = ['quic-agent', 'media-bridge', 'event-bridge'];
44+
const experimentalTargets = ['quic-agent', 'media-bridge', 'event-bridge', 'cascading-control'];
4545

4646
var allTargets = [];
4747

source/agent/conference/conference.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ var RoomController = require('./roomController');
1212
var dataAccess = require('./data_access');
1313
var Participant = require('./participant');
1414
const { QuicController } = require('./quicController');
15+
var crypto = require('crypto');
1516

1617
// Logger
1718
var log = logger.getLogger('Conference');
@@ -108,7 +109,7 @@ var Conference = function (rpcClient, selfRpcId) {
108109
var rtcController;
109110
let quicController;
110111

111-
var roomToken = Math.round(Math.random() * 1000000000000000000) + '';
112+
var roomToken = crypto.randomBytes(32).toString('hex');
112113

113114
/*
114115
* {

0 commit comments

Comments
 (0)