Class HeartPacket


  • public class HeartPacket
    extends ClientPacket
    Used to tell server the connection is not lost.
    • Constructor Detail

      • HeartPacket

        public HeartPacket​(int clientId,
                           String token,
                           long time)
        Constructs a HeartPacket
        Parameters:
        clientId - the client id
        token - the client token
        time - the client time
    • Method Detail

      • getId

        public int getId()
        Description copied from class: Packet
        Get the packet id
        Specified by:
        getId in class Packet
        Returns:
        the packet id
      • getTime

        public long getTime()