mcpwn API
    Preparing search index...

    Interface RpcMessage

    A parsed JSON-RPC 2.0 message. raw is the exact source line so we can relay byte-for-byte when no rule touches it (NFR-1 transparency).

    interface RpcMessage {
        id?: string | number | null;
        json?: any;
        kind: MessageKind;
        method?: string;
        raw: string;
    }

    Hierarchy (View Summary)

    Index
    id?: string | number | null

    Present on requests, responses, and errors.

    json?: any

    Parsed JSON value, or undefined if the line was not valid JSON.

    method?: string

    Present on requests and notifications. For responses we fill this in from the correlator (responses carry no method on the wire).

    raw: string