dotnet / WatsonTcp

WatsonTcp is the easiest way to build TCP-based clients and servers in C#.
MIT License
600 stars 117 forks source link

When WatsonTcpClient is connected to server the ConnectionEventArgs.Client is null #239

Closed kWoren closed 1 year ago

kWoren commented 1 year ago

Hi,

Thank you for this great library, I have used it for some time and it made things so much easier! In the latest release I noticed the following problem:

var client = new WatsonTcpClient(ServerIp, ServerPort);

client.Events.ServerConnected += (s, e) => { e.Client is null here!! };

jchristn commented 1 year ago

Hi, that is expected. The client property is only useful in that event on the server-side.