BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
368 stars 108 forks source link

notify client when connection gets started or interrupted #77

Open lucas-frdgs opened 2 years ago

lucas-frdgs commented 2 years ago

Client instance has now event handlers that allows to change state in your code, when connection gets started or interrupted.

Client.ConnectionStarted += Client_ConnectionStarted; Client.ConnectionInterrupted += Client_ConnectionInterrupted;

You can do something like changing client UI connection indicator or button state;

moino157 commented 1 year ago

Why hasn't this been merged yet? I need this.