StdioServerTransport

class StdioServerTransport(inputStream: Source, outputStream: Sink) : AbstractTransport(source)

A server transport that communicates with a client via standard I/O.

Reads from input Source and writes to output Sink.

Parameters

inputStream

The input Source used to receive data.

outputStream

The output Sink used to send data.

Constructors

Link copied to clipboard
constructor(inputStream: Source, outputStream: Sink)

Creates a new instance of StdioServerTransport.

Functions

Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open override fun onClose(block: () -> Unit)
Link copied to clipboard
open override fun onError(block: (Throwable) -> Unit)
Link copied to clipboard
open override fun onMessage(block: suspend (JSONRPCMessage) -> Unit)
Link copied to clipboard
open suspend override fun send(message: JSONRPCMessage, options: TransportSendOptions?)
Link copied to clipboard
open suspend override fun start()