22 lines
No EOL
684 B
TypeScript
22 lines
No EOL
684 B
TypeScript
/**
|
|
* @module botframework-streaming
|
|
*/
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License.
|
|
*/
|
|
/**
|
|
* The interface implemented by any compatible socket transport, typically used
|
|
* with the WebSocket server or client.
|
|
*/
|
|
import { INodeBuffer } from './INodeBuffer';
|
|
export interface ISocket {
|
|
isConnected: boolean;
|
|
write(buffer: INodeBuffer): any;
|
|
connect(serverAddress: string): Promise<void>;
|
|
close(): any;
|
|
setOnMessageHandler(handler: (x: any) => void): any;
|
|
setOnErrorHandler(handler: (x: any) => void): any;
|
|
setOnCloseHandler(handler: (x: any) => void): any;
|
|
}
|
|
//# sourceMappingURL=ISocket.d.ts.map
|