UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
1 lines 1.53 kB
{"version":3,"sources":["src/common/IConnection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,oBAAY,eAAe;IACvB,IAAI,IAAA;IACJ,SAAS,IAAA;IACT,UAAU,IAAA;IACV,YAAY,IAAA;CACf;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,IAAI,eAAe,CAAC;IACzB,IAAI,IAAI,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACxC,IAAI,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,IAAI,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACnC,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IACrC,OAAO,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C","file":"IConnection.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT license.\r\n\r\nimport { ConnectionEvent } from \"./ConnectionEvents.js\";\r\nimport { ConnectionMessage } from \"./ConnectionMessage.js\";\r\nimport { ConnectionOpenResponse } from \"./ConnectionOpenResponse.js\";\r\nimport { EventSource } from \"./EventSource.js\";\r\n\r\nexport enum ConnectionState {\r\n None,\r\n Connected,\r\n Connecting,\r\n Disconnected,\r\n}\r\n\r\nexport interface IConnection {\r\n id: string;\r\n state(): ConnectionState;\r\n open(): Promise<ConnectionOpenResponse>;\r\n send(message: ConnectionMessage): Promise<void>;\r\n read(): Promise<ConnectionMessage>;\r\n events: EventSource<ConnectionEvent>;\r\n dispose(disposing?: string): Promise<void>;\r\n}\r\n"]}