StdioServerTransport
constructor(input: Source, output: Sink, block: StdioServerTransport.Builder.() -> Unit = {})(source)
Creates a StdioServerTransport reading from input and writing to output, with optional configuration applied through a Builder block.
Parameters
input
source the transport reads JSON-RPC messages from
output
sink the transport writes JSON-RPC messages to
block
configuration applied to the underlying Builder
Deprecated
Use StdioServerTransport(input, output) { ... } instead.
Replace with
StdioServerTransport(input = inputStream, output = outputStream)Content copied to clipboard
Creates a StdioServerTransport from the given input source and output sink with default configuration. Retained for binary compatibility; prefer the Builder-based constructor.
Parameters
inputStream
source the transport reads JSON-RPC messages from
outputStream
sink the transport writes JSON-RPC messages to