mirror of
https://github.com/oliverbooth/TcpDotNet
synced 2024-11-09 23:25:42 +00:00
13 lines
406 B
C#
13 lines
406 B
C#
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;
|
|
}
|
|
}
|