Package-level declarations
JSON-RPC channel implementation, request/response framing, and notification handling.
JSON-RPC channel implementation, request/response framing, and notification handling.
Types
Link copied to clipboard
JSON-RPC RpcCallId: wraps the request's id primitive so cancellation can be routed by the original request identifier.
Link copied to clipboard
Protocol-agnostic cancellation convention for JSON-RPC.
Link copied to clipboard
Convention for carrying @KsContext wire-context entries over JSON-RPC.
Functions
Link copied to clipboard
suspend fun Pair<ByteReadChannel, ByteWriteChannel>.asJsonRpcConnection(env: KsrpcEnvironment<String>, includeContentHeaders: Boolean = true, cancellationConvention: JsonRpcCancellationConvention = JsonRpcCancellationConvention.None, contextConvention: JsonRpcContextConvention = JsonRpcContextConvention.RootSiblings): 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.