mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
12 lines • 360 B
TypeScript
export type MessageHandler = (data: any) => void;
export declare class WebSocketClient {
private ws;
private url;
private messageHandler;
private reconnectInterval;
constructor(url: string);
connect(): void;
setMessageHandler(handler: MessageHandler): void;
send(data: any): void;
}
//# sourceMappingURL=WebSocketClient.d.ts.map