Class SocketPayload
java.lang.Object
com.github.twitch4j.eventsub.socket.domain.SocketPayload
An object that contains the EventSub Websocket message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@Nullable ObjectThe event’s data.@Nullable EventSubEvent@Nullable EventSubSocketInformationAn object that contains information about the connection.@Nullable EventSubSubscriptionAn object that contains information about your subscription.inthashCode()toString()
-
Constructor Details
-
SocketPayload
public SocketPayload()
-
-
Method Details
-
getParsedEvent
- Returns:
- the parsed event data from raw Map to
EventSubEvent, or null if this payload does not represent a notification.
-
getSession
An object that contains information about the connection.Present if
SocketMessageMetadata.getMessageType()is:SocketMessageType.SESSION_WELCOMEorSocketMessageType.SESSION_RECONNECT. -
getSubscription
An object that contains information about your subscription.Present if
SocketMessageMetadata.getMessageType()is:SocketMessageType.NOTIFICATIONorSocketMessageType.REVOCATION. -
getEventData
The event’s data.For information about the event’s data, see the subscription type’s description in Subscription Types.
Present only if
SocketMessageMetadata.getMessageType()isSocketMessageType.NOTIFICATION. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-