mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-14 07:34:35 +01:00
Added Ping handler, reconnection MIGHT work now
This commit is contained in:
@@ -14,6 +14,13 @@ namespace AscNet.GameServer.Handlers
|
||||
session.SendResponse(heartbeatResponse, packet.Id);
|
||||
}
|
||||
|
||||
// TODO: Pong?
|
||||
[RequestPacketHandler("Ping")]
|
||||
public static void PingHandler(Session session, Packet.Request packet)
|
||||
{
|
||||
session.SendResponse(new Pong()
|
||||
{
|
||||
UtcTime = (ulong)DateTimeOffset.UtcNow.UtcTicks
|
||||
}, packet.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user