createClientSession

Create a new RPCClient implementing API.

The info parameter is available as the connectionInfo parameter of the returned client object.

RPCClient!(API, ConnectionInfo)
createClientSession
(
API
ConnectionInfo
)
(
Stream stream
,
ConnectionInfo info
)

Examples

auto client = createClientSession!(API, string)(stream, "Hello");
assert(client.connectionInfo == "hello");

Meta