Class EventSocketClosedByTwitchEvent

java.lang.Object
com.github.twitch4j.eventsub.socket.events.EventSocketClosedByTwitchEvent

public final class EventSocketClosedByTwitchEvent extends Object
Called when Twitch decides to close our EventSocket.
  • Constructor Details

    • EventSocketClosedByTwitchEvent

      public EventSocketClosedByTwitchEvent(SocketCloseReason reason, TwitchEventSocket connection)
      Creates a new EventSocketClosedByTwitchEvent instance.
      Parameters:
      reason - The reported reason for why Twitch closed the EventSocket connection.
      connection - The EventSocket instance whose connection status changed.
  • Method Details

    • getReason

      public SocketCloseReason getReason()
      The reported reason for why Twitch closed the EventSocket connection.
    • getConnection

      public TwitchEventSocket getConnection()
      The EventSocket instance whose connection status changed.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object