@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
19 lines (17 loc) • 524 B
JavaScript
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
import { ArgumentNullError } from "./Error";
import { EventSource } from "./EventSource";
export class Events {
static get instance() {
return Events.privInstance;
}
}
Events.privInstance = new EventSource();
Events.setEventSource = (eventSource) => {
if (!eventSource) {
throw new ArgumentNullError("eventSource");
}
Events.privInstance = eventSource;
};
//# sourceMappingURL=Events.js.map