Class EventSocketWelcomedEvent

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

public final class EventSocketWelcomedEvent extends Object
Fired when a TwitchEventSocket receives a SocketMessageType.SESSION_WELCOME message.

As a result, TwitchEventSocket.getWebsocketId() will be populated, which allows for EventSub subscriptions to be registered with Twitch's Helix API.

  • Constructor Details

  • Method Details

    • getConnection

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

      public String getSessionId()
      The ID that was assigned to the websocket upon connect.
    • 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