Started work on WebRTC Negotation Relay Backend

This commit is contained in:
rainbow napkin 2026-07-11 03:07:17 -04:00
parent 8f02be793f
commit b68d55b7ef
7 changed files with 108 additions and 6 deletions

View file

@ -19,7 +19,8 @@ const connectedUser = require('./connectedUser');
const chatBuffer = require('./chatBuffer');
const queue = require('./media/queue');
const channelModel = require('../../schemas/channel/channelSchema');
const playlistHandler = require('./media/playlistHandler')
const playlistHandler = require('./media/playlistHandler');
const webRTCHandler = require('./media/webRTCHandler');
/**
* Class representing a single active channel
@ -67,6 +68,11 @@ class activeChannel{
*/
this.playlistHandler = new playlistHandler(server, this);
/**
* Child WebRTC Handler Object
*/
this.webRTCHandler = new webRTCHandler(server, this);
/**
* Child Chat Buffer Object
*/
@ -108,6 +114,7 @@ class activeChannel{
//Define per-channel event listeners
this.queue.defineListeners(socket);
this.playlistHandler.defineListeners(socket);
this.webRTCHandler.defineListeners(socket);
//Hand off the connection initiation to it's user object
const activeUser = await userObj.handleConnection(userDB, chanDB, socket)