16 lines
503 B
TypeScript
16 lines
503 B
TypeScript
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
import { DataReceived, ConnectionClosed } from "./Common"
|
|
import { TransportType, TransferMode, ITransport } from "./Transports"
|
|
|
|
export interface IConnection {
|
|
readonly features: any;
|
|
|
|
start(): Promise<void>;
|
|
send(data: any): Promise<void>;
|
|
stop(): void;
|
|
|
|
onreceive: DataReceived;
|
|
onclose: ConnectionClosed;
|
|
} |