Skip to content

Commit

Permalink
fix: StreamJsonRpc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyakunin committed Dec 7, 2023
1 parent 88ea757 commit ce20e1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/RpcBenchmark/Client/Clients/ClientFactories.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ private IServiceCollection CreateBaseServiceCollection()
return connection;
});

// StreamJsonRpc
services.AddTransient(c => {
var ws = new ClientWebSocket();
ws.Options.HttpVersion = HttpVersion.Version11;
ws.Options.RemoteCertificateValidationCallback = (_, _, _, _) => true;
return ws;
});

// RestEase/HTTP
var restEase = services.AddRestEase();
var baseAddress = new Uri(BaseUrl);
Expand Down

0 comments on commit ce20e1d

Please sign in to comment.