Add StreamDispatcher#start event

This commit is contained in:
Amish Shah
2016-09-11 17:39:01 +01:00
parent aa5df43c50
commit 8f1216d9a5
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -123,6 +123,11 @@ class StreamDispatcher extends EventEmitter {
this._setSpeaking(true);
if (!data.startTime) {
/**
* Emitted once the dispatcher starts streaming
* @event StreamDispatcher#start
*/
this.emit('start');
data.startTime = Date.now();
}