.Net client

🔗 install package from nuget

Add required namespace

using TcpClientKit;

Set connection event.

TcpClient.ConnectResult += (TcpClient.ConnectingStatus cs) =>

Add listeners

Client.On("Login", LoginResult);

login sample function

private void Login(string data)
    Console.WriteLine($"{data} from Login");

Initialize and Start client

TcpClient.InitServer("", 3000);

we try to connect to server with IP and port 3000

For reconnecting

TcpClient.InitServer("", 3000);