Hi @mythz ,
2 Questions on SSE.
- When running in development everything runs on https. So in general api calls I will use something like code below when connecting from a simulator to connect with my localhost as simulator normally reference specific IP to map to localhost. To prevent SSL error I will use code below.
ServerCertificateCustomValidationCallback = (req, cert, chain, errors) =>
{
return true;
}
On Server Events is there something that I can use on the “client side” to ignore the SSL errors
similar to code above.
I have tried on server side the code below but I still see the SSL Error
LimitToAuthenticatedUsers = false
SSL Error:
Error : System.Net.WebException: Error: TrustFailure (Authentication failed, see inner exception.) —> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. —> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220
- I use the trigger functionality in SSE. On a mobile device I will subscribe to triggers with
sse_client?.AddListener(listenerName, handler);
So I have different tabs in my mobile app that subscribes to between 50-100 triggers at a time when the user selects different tabs to display data in real-time.
I assume each listener call above will trigger a http request to server. So 50-100 trigger per tab will result in many calls.
Is there perhaps a more efficient way to send the triggers to server in bulk so that I only end up with one htttp call to server ?
Thanks again.