Class CloseData

java.lang.Object
live.crowdcontrol.cc4j.util.CloseData

public final class CloseData extends Object
Information related to the WebSocket connection closing
  • Constructor Details

    • CloseData

      public CloseData(int code, @Nullable @Nullable String reason, boolean remote)
  • Method Details

    • getCode

      public int getCode()
      Returns:
      close frame code
    • getReason

      @Nullable public @Nullable String getReason()
      Additional information string
      Returns:
      reason string
    • isRemote

      @Deprecated public boolean isRemote()
      Deprecated.
      no longer available
      Returns whether the closing of the connection was initiated by the remote host.
      Returns:
      remote cause