UNPKG

@microsoft/signalr

Version:
13 lines (12 loc) 463 B
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; }