Contains the RPC client API.
Note: This interface is decoupled from the underlying transport stream and therefore requires manually creating these streams. Higher level interfaces for common stream implementations are available in vibe.rpcchannel.tcp and vibe.rpcchannel.noise.
Synopsis:
abstract class API { void callMethos(); Event!() onEvent; } auto stream = connectTCP("127.0.0.1", 8080); auto client = createClientSession!(API, TCPConnection)(stream, stream); client.callMethod(); client.onEvent ~= () {}; client.disconnect(); stream.close();
This implements an RPC client for API.
Create a new RPCClient implementing API.
See Source File
Contains the RPC client API.
Note: This interface is decoupled from the underlying transport stream and therefore requires manually creating these streams. Higher level interfaces for common stream implementations are available in vibe.rpcchannel.tcp and vibe.rpcchannel.noise.
Synopsis: