private static void EventSocket_NewPackageReceived(object sender, SuperSocket.ClientEngine.PackageEventArgs <SocketClient.PackageInfo.EventPackageInfo> e) { SocketClient.PackageInfo.EventPackageInfo pkg = e.Package; SocketClient.EventSocket eventSocket = (SocketClient.EventSocket)sender; log4j.Info($"{eventSocket.Name} k: {pkg.MainKey}, sk: {pkg.SubKey}, b: {pkg.Body}"); //Thread.Sleep(500); }
private void Client_NewPackageReceived(object sender, SuperSocket.ClientEngine.PackageEventArgs <ClientPackageInfo> packageInfo) { }