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>
suspend fun ProcessBuilder.asJsonRpcConnection(env: KsrpcEnvironment<String>): SingleChannelConnection<String>
Create a SingleChannelConnection that starts the process and uses the Process.getInputStream and Process.getOutputStream as the streams for communication using jsonrpc.
suspend fun Pair<InputStream, OutputStream>.asJsonRpcConnection(env: KsrpcEnvironment<String>): SingleChannelConnection<String>
Helper that calls into Pair
Link copied to clipboard
Create a SingleChannelConnection that communicates over the std in/out streams of this process using jsonrpc.