If you send a message it must not contain a newline but the message must be terminated by a newline.

interface QueryResponseMessage {
    id: undefined | string;
    results: QueryResults<
        | "dataflow"
        | "call-context"
        | "normalized-ast"
        | "id-map"
        | "dataflow-cluster"
        | "static-slice"
        | "lineage"
        | "dependencies"
        | "location-map">;
    type: "response-query";
}

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of QueryResponseMessage

Properties

Properties

id: undefined | string

The id that links a request with its responses, it is up to the calling client to make sure it is unique. However, the client does not have to pass the id if it does not need to link the request with its response. The id is always undefined if the message is unprompted (e.g., with hello) or the id unknown.

results: QueryResults<
    | "dataflow"
    | "call-context"
    | "normalized-ast"
    | "id-map"
    | "dataflow-cluster"
    | "static-slice"
    | "lineage"
    | "dependencies"
    | "location-map">

Contains an entry for each (non-virtual) query type requested

type: "response-query"

The at this time unknown type