1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-14 04:25:42 +00:00
TcpDotNet/TcpDotNet.ClientIntegrationTest/PacketHandlers/GoodbyePacketHandler.cs

13 lines
399 B
C#

using TcpDotNet.Protocol;
namespace TcpDotNet.ClientIntegrationTest.PacketHandlers;
internal sealed class GoodbyePacketHandler : PacketHandler<GoodbyePacket>
{
public override Task HandleAsync(ClientNode recipient, GoodbyePacket packet, CancellationToken cancellationToken = default)
{
Console.WriteLine($"Server sent {packet.Message}");
return Task.CompletedTask;
}
}