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

13 lines
402 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(ClientNode recipient, GoodbyePacket packet, CancellationToken cancellationToken = default)
2022-07-05 14:55:59 +01:00
{
Console.WriteLine($"Server sent {packet.Message}");
return Task.CompletedTask;
}
}