I'm not sure if I'm supposed to try/catch (since the socket repeatedly tries to connect), watch for an event, or what. I've read this but it only covers errors that I publish. I'm trying to watch for a "socket hung up" which appears to be thrown when the client can't connect to the server, so I can pop up a message in my application saying that the server isn't reachable.
I'm not sure if I'm supposed to try/catch (since the socket repeatedly tries to connect), watch for an event, or what. I've read this but it only covers errors that I publish. I'm trying to watch for a "socket hung up" which appears to be thrown when the client can't connect to the server, so I can pop up a message in my application saying that the server isn't reachable.