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

interface QueryRequestMessage {
    filetoken: string;
    id: undefined | string;
    query: Queries<
        | "dataflow"
        | "call-context"
        | "normalized-ast"
        | "id-map"
        | "dataflow-cluster"
        | "static-slice"
        | "lineage"
        | "dependencies"
        | "location-map">;
    type: "request-query";
}

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of QueryRequestMessage

Properties

Properties

filetoken: string

The FileAnalysisRequestMessage#filetoken of the file/data

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.

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

The query to run on the file analysis information

type: "request-query"

The at this time unknown type