@microsoft/signalr
Version:
ASP.NET Core SignalR Client
13 lines (12 loc) • 463 B
TypeScript
import { TransferFormat } from "./ITransport";
/** @private */
export interface IConnection {
readonly features: any;
readonly connectionId?: string;
baseUrl: string;
start(transferFormat: TransferFormat): Promise<void>;
send(data: string | ArrayBuffer): Promise<void>;
stop(error?: Error | unknown): Promise<void>;
onreceive: ((data: string | ArrayBuffer) => void) | null;
onclose: ((error?: Error) => void) | null;
}