Hello. I am a smartthings client programmer.
in my simple console program, I am now trying to receive Server Sent Event from the smartthings clould sever. So, in my program, I tried successfully to connect to the uri “https://api.smartthings.com/subscriptions”. However, but after amount of time, the connection was closed unexpectedly, and failed to re-connect to the server with the following exception message.
Unhandled Exception . System.Net.WebException : no connection could be made because tharget machine actively refused it. destnation target computer reject
does anybody know the reason? why the server refused the connection and how to handle the issue in my program to keep the connection.