File size: 501 Bytes
4cadbaf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/// <reference types="node" />
import { EventEmitter } from "events";
export default class RemoteFile extends EventEmitter {
    autoReconnect: boolean;
    socket: WebSocket;
    connected: boolean;
    filePath: string;
    timestamp: number;
    _content: string;
    constructor({ autoReconnect }?: {
        autoReconnect?: boolean;
    });
    get hash(): string;
    get content(): string;
    set content(value: string);
    connect(host: string, filePath: string): void;
    close(): void;
}