connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});
connection.receiver.speaking.on('start', userId => {
if (!connection.receiver.subscriptions.has(userId))
{
const opusStream = connection.receiver.subscribe(userId, {
end: {
behavior: EndBehaviorType.Manual,
},
});