Class DisconnectPacket


  • public class DisconnectPacket
    extends ClientPacket
    Used to tell server the connection has lost.
    • Constructor Detail

      • DisconnectPacket

        public DisconnectPacket​(int clientId,
                                String token)
        Constructs a DisconnectedPacket
        Parameters:
        clientId - the client id
        token - the client token
    • 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