var connection = new HubConnectionBuilder().WithUrl(serverUrl, option => { option.HttpMessageHandlerFactory = (handler) => { var ne... ...
var connection = new HubConnectionBuilder().WithUrl(serverUrl, option => { option.HttpMessageHandlerFactory = (handler) => { var newHandler = handler as HttpClientHandler; newHandler.ServerCertificateCustomValidationCallback = (request, cert, chain, errors) => { return true; }; return newHandler; }; }).Build();