UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
19 lines (17 loc) 524 B
// 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