recoder-code
Version:
Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities
13 lines (12 loc) • 442 B
TypeScript
import { NetStream } from "../types";
export declare type ErrorEmitter = (type: string, err: Error) => void;
export default abstract class AbstractConnector {
firstError?: Error;
protected connecting: boolean;
protected stream: NetStream;
private disconnectTimeout;
constructor(disconnectTimeout: number);
check(info: any): boolean;
disconnect(): void;
abstract connect(_: ErrorEmitter): Promise<NetStream>;
}