botframework-streaming
Version:
Streaming library for the Microsoft Bot Framework
26 lines (24 loc) • 780 B
text/typescript
/**
* @module botframework-streaming
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
/**
* Partially represents a WebSocket from the HTML Living Standard.
* For more information, see https://html.spec.whatwg.org/multipage/web-sockets.html.
*
* This interface supports the framework and is not intended to be called directly for your code.
*/
export interface IBrowserWebSocket {
/* eslint-disable @typescript-eslint/no-explicit-any */
onclose: (event: any) => void;
onerror: (event: any) => void;
onmessage: (event: any) => void;
onopen: (event: any) => void;
send(buffer: any): void;
/* eslint-enable @typescript-eslint/no-explicit-any */
readyState: number;
close(): void;
}