1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-10 02:55:41 +00:00
TcpDotNet/TcpDotNet.ClientIntegrationTest/PacketHandlers/GoodbyePacketHandler.cs

13 lines
406 B
C#
Raw Normal View History

2022-07-05 14:55:59 +01:00
using TcpDotNet.Protocol;
namespace TcpDotNet.ClientIntegrationTest.PacketHandlers;
internal sealed class GoodbyePacketHandler : PacketHandler<GoodbyePacket>
{
public override Task HandleAsync(BaseClientNode recipient, GoodbyePacket packet, CancellationToken cancellationToken = default)
{
Console.WriteLine($"Server sent {packet.Message}");
return Task.CompletedTask;
}
}