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


constructor(inputStream: Source, outputStream: Sink)(source)

Deprecated

Use StdioServerTransport(input, output) { ... } instead.

Replace with

StdioServerTransport(input = inputStream, output = outputStream)

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