Class DisconnectPacket

  • All Implemented Interfaces:
    Serializable, top.focess.util.serialize.FocessSerializable

    public class DisconnectPacket
    extends ClientPacket
    Used to tell server the connection has lost.
    See Also:
    Serialized Form
    • 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