StdioContext.this

sink receives one serialised JSON-RPC frame per call (the transport adds the newline terminator). progressToken is the originating request's _meta.progressToken, or Json.undefined when it carried none. negotiated is the protocol version agreed for this connection; it gates version-specific wire fields on the notifications this context emits (e.g. the message field on notifications/progress, which only exists from 2025-03-26 onward). This overload wires no server->client request channel (sendRequest throws, clientSupports is false).

  1. this(void delegate(string) @(safe) sink, Json progressToken, ProtocolVersion negotiated)
    class StdioContext
    @safe
    this
    (
    void delegate
    (
    string
    )
    @safe
    sink
    ,
    Json progressToken = Json.undefined
    ,)
  2. this(void delegate(string) @(safe) sink, Json delegate(string, Json) @(safe) serverRequest, ClientCapabilities clientCaps, Json progressToken, ProtocolVersion negotiated, bool serverStateless)