From 956b01901f5a47f68d7c450ebdb9ef9fecb3d8be Mon Sep 17 00:00:00 2001 From: Damon Oehlman Date: Tue, 22 Jul 2014 09:17:56 +1000 Subject: [PATCH] Expose and track plugins provided through opts --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index db23a0b..abf7073 100644 --- a/index.js +++ b/index.js @@ -119,6 +119,9 @@ module.exports = function(signalhost, opts) { // create the known data channels registry var channels = {}; + // save the plugins passed to the signaller + var plugins = signaller.plugins = (opts || {}).plugins || []; + function callCreate(id, pc, data) { calls.set(id, { active: false,