Open RedCali opened 6 years ago
adding the following fixed my issue:
add handler property:
public event EventHandler ConnectionInterrupted;
add the handler:
private void NotifyConnectionInterrupted(TcpClient client, byte[] msg)
{
ConnectionInterrupted?.Invoke(this, EventArgs.Empty);
}
call handler in "RunLoopStep()":
if (_client.Connected == false)
{
NotifyConnectionInterrupted(_client, null);
return;
}
i miss an event / notification in SimpleTcpClient class for broken connection
May the Server or the connection is brocken you do not get a notice for that. So in this case you cant handle it and can't do anything....
Should we add an event for that case? Regards Bastian