Class ChatConnectionStateEvent

java.lang.Object
com.github.philippheuer.events4j.core.domain.Event
com.github.twitch4j.chat.events.ChatConnectionStateEvent
All Implemented Interfaces:
com.github.philippheuer.events4j.api.domain.IEvent

public class ChatConnectionStateEvent extends Event
Chat Connection Event

Called when a chat socket's connection status changes.

  • Constructor Details

    • ChatConnectionStateEvent

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