Interface CloseReason.CloseCode

  • All Known Implementing Classes:
    Enclosing class:

    public static interface CloseReason.CloseCode
    A marker interface for the close codes. This interface may be implemented by enumerations that contain web socket close codes, for example enumerations that contain all the in use close codes as of web socket 1.0, or an enumeration that contains close codes that are currently reserved for special use by the web socket specification.
    • Method Detail

      • getCode

        int getCode()
        Returns the code number, for example the integer '1000' for normal closure.
        the code number