initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Server.Connectings;
|
||||
|
||||
namespace Server.Messages;
|
||||
|
||||
internal class HandlerPing
|
||||
{
|
||||
public static void Read(Clients client, object[] objects)
|
||||
{
|
||||
if (client.Tag == null)
|
||||
{
|
||||
client.Disconnect();
|
||||
return;
|
||||
}
|
||||
client.lastPing.Last();
|
||||
client.Send(new object[1] { "Pong" });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user