Class EventSocketConnectionStateEvent

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

public final class EventSocketConnectionStateEvent extends Object
Called when the connection state of an EventSocket changes.
  • Constructor Details

    • EventSocketConnectionStateEvent

      public EventSocketConnectionStateEvent(WebsocketConnectionState previousState, WebsocketConnectionState state, TwitchEventSocket connection)
      Creates a new EventSocketConnectionStateEvent instance.
      Parameters:
      previousState - The previous state of the websocket.
      state - The updated state of the websocket.
      connection - The EventSocket instance whose connection status changed.
  • Method Details