Function createClientSession
Create a new RPCClient implementing API.
RPCClient!(API,ConnectionInfo) createClientSession(API, ConnectionInfo)
(
Stream stream,
ConnectionInfo info
);
The info parameter is available as the connectionInfo parameter of the returned client object.
Example
auto client = createClientSession!(API, string)(stream, "Hello");
assert(client .connectionInfo == "hello");