PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/nx/src/daemon/client

Просмотр файла: socket-messenger.d.ts

/// <reference types="node" />
import { Socket } from 'net';
export interface Message extends Record<string, any> {
    type: string;
    data?: any;
}
export declare class SocketMessenger {
    private socket;
    constructor(socket: Socket);
    sendMessage(messageToDaemon: Message): Promise<void>;
    listen(onData: (message: string) => void, onClose?: () => void, onError?: (err: Error) => void): this;
    close(): void;
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!