Closed ducin closed 8 years ago
Hmm end is used almost everywhere in Node, it would have been nice if tessel-av followed that.
I agree - I think the solution would be to update tessel-av
API to emit end
.
Just ran across this, should have been merged in July! @rwaldron can you confirm that this is still the correct syntax?
Hmm end is used almost everywhere in Node, it would have been nice if tessel-av followed that. I agree - I think the solution would be to update tessel-av API to emit end.
But it's not an "end" event in the sense that you're referring to, which is:
The 'end' event is emitted when there is no more data to be consumed from the stream.
(https://nodejs.org/api/stream.html#stream_event_end)
I chose "ended", because that's the event that's emitted for HTML audio when the sound's playback has ended. This naming was intentional to differentiate away from Node's "end" event.
@Frijol LGTM!
Hmm
end
is used almost everywhere in Node, it would have been nice iftessel-av
followed that. Anyhow, that's another discussion :)LGTM