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

expose channels (PC), allowing KITE test #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/sdk/conference/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,15 @@ export const ConferenceClient = function(config, signalingImpl) {
if (!room) {
return null;
}
return new ConferenceInfo(room.id, Array.from(participants, (x) => x[
1]), Array.from(remoteStreams, (x) => x[1]), me);
return new ConferenceInfo(room.id, Array.from(participants
.values()), Array.from(remoteStreams.values()), me);
},
});

Object.defineProperty(this, 'channels', {
configurable: false,
get: () => {
return Array.from(channels.values());
},
});

Expand Down
7 changes: 7 additions & 0 deletions src/sdk/p2p/p2pclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ const P2PClient = function(configuration, signalingChannel) {
self.dispatchEvent(new OwtEvent('serverdisconnected'));
};

Object.defineProperty(this, 'channels', {
configurable: false,
get: () => {
return Array.from(channels.values());
},
});

/**
* @member {array} allowedRemoteIds
* @memberof Owt.P2P.P2PClient
Expand Down