Package-level declarations

Implementation of ksrpc channels that communicate using jsonrpc protocol.

Implementation of ksrpc channels that communicate using jsonrpc protocol.

Functions

Link copied to clipboard
suspend fun Pair<ByteReadChannel, ByteWriteChannel>.asJsonRpcConnection(env: KsrpcEnvironment<String>, includeContentHeaders: Boolean = true): SingleChannelConnection<String>

Create a SingleChannelConnection that starts the process and uses the Process.getInputStream and Process.getOutputStream as the streams for communication using jsonrpc.

Helper that calls into Pair.asJsonRpcConnection.

Link copied to clipboard

Create a SingleChannelConnection that communicates over the std in/out streams of this process using jsonrpc.