more tiny voice docs

This commit is contained in:
Amish Shah
2016-12-30 18:10:48 +00:00
parent 56e01291e2
commit d13c48bafa
2 changed files with 5 additions and 1 deletions

View File

@@ -226,6 +226,10 @@ class Client extends EventEmitter {
return typeof window !== 'undefined';
}
/**
* Creates a new voice broadcast
* @returns {VoiceBroadcast} the created broadcast
*/
createVoiceBroadcast() {
const broadcast = new VoiceBroadcast(this);
this.broadcasts.push(broadcast);

View File

@@ -12,7 +12,7 @@ const ffmpegArguments = [
];
/**
* A voice broadcast that can be played across multiple voice connections
* A voice broadcast can be played across multiple voice connections for improved shared-stream efficiency.
* @extends {EventEmitter}
*/
class VoiceBroadcast extends EventEmitter {