web-push-libs/web-push-csharp

error to Edge when lunch SendNotification

ivantrouvetout opened this issue · 1 comments

I'm having trouble sending notifications to the Edge browser.
I have this error
-> Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.

have you he same error to send to Edge ?

during my research I found the following link

https://stackoverflow.com/questions/5420656/unable-to-read-data-from-the-transport-connection-an-existing-connection-was-f

I remain available if necessary

ok,
just add this befor work for me
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11;