1
0
mirror of https://github.com/oliverbooth/TcpDotNet synced 2024-11-13 02:15:43 +00:00
TcpDotNet/TcpDotNet.ClientIntegrationTest/PacketHandlers/GoodbyePacketHandler.cs

13 lines
399 B
C#
Raw Normal View History

2024-02-12 17:41:52 +00:00
using TcpDotNet.Protocol;
2022-07-05 14:55:59 +01:00
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;
}
}