Respond with Goodbye! in GoodbyePacket
This commit is contained in:
parent
a0d686109c
commit
553f7235f1
|
@ -7,6 +7,6 @@ internal sealed class HelloPacketHandler : PacketHandler<HelloPacket>
|
||||||
public override Task HandleAsync(BaseClientNode recipient, HelloPacket packet, CancellationToken cancellationToken = default)
|
public override Task HandleAsync(BaseClientNode recipient, HelloPacket packet, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
Console.WriteLine($"Client sent {packet.Message}");
|
Console.WriteLine($"Client sent {packet.Message}");
|
||||||
return recipient.SendPacketAsync(new GoodbyePacket {Message = "Nope"}, cancellationToken);
|
return recipient.SendPacketAsync(new GoodbyePacket {Message = "Goodbye!"}, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue