Skip to content

Commit dfa47c6

Browse files
committed
Expose local streams through getLocalStreams accessor
1 parent f7bc25f commit dfa47c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,15 @@ module.exports = function(signalhost, opts) {
648648
return profile[name];
649649
};
650650

651+
/**
652+
#### `getLocalStreams()`
653+
654+
Return a copy of the local streams that have currently been configured
655+
**/
656+
signaller.getLocalStreams = function() {
657+
return [].concat(localStreams);
658+
};
659+
651660
/**
652661
#### reactive()
653662

0 commit comments

Comments
 (0)