interface Multiplexer
(source)
Multiplexes asynchronous requests and streams across a connection to a node. Handles multiple active requests and streams across one connection.
abstract fun close(): Unit
Close the underlying connection |
|
abstract fun makeAsyncRequest(request: RPCAsyncRequest): AsyncResult<RPCResponse>
Issue an 'async' type request to a node, which will eventually return a result from the node. |
|
abstract fun openStream(request: RPCStreamRequest, streamFactory: Function<Runnable, ScuttlebuttStreamHandler>): Unit
Creates a request which opens a stream (e.g. a 'source' in the protocol docs.) |
open class RPCHandler : Multiplexer, ClientHandler
Handles RPC requests and responses from an active connection to a scuttlebutt node. |