public RpcApp() { Server = new MockServerApp(); Server.RpcServer.WebHost.Start(); var port = Server.RpcServer.ServerPort; HttpClient = JsonRpcClient.Create(new Uri($"http://{IPAddress.Loopback}:{port}"), ArbitraryDefaults.DEFAULT_GAS_LIMIT, ArbitraryDefaults.DEFAULT_GAS_PRICE); WebSocketClient = JsonRpcClient.Create(new Uri($"ws://{IPAddress.Loopback}:{port}"), ArbitraryDefaults.DEFAULT_GAS_LIMIT, ArbitraryDefaults.DEFAULT_GAS_PRICE); }
public ClientToServerIntegration(RpcApp rpcApp) { Server = rpcApp.Server; HttpClient = rpcApp.HttpClient; WebSocketClient = rpcApp.WebSocketClient; }