Package com.github.twitch4j.pubsub
Interface ITwitchPubSub
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
TwitchPubSub,TwitchPubSubConnectionPool
@Deprecated
@ScheduledForRemoval(inVersion="2.0.0")
public interface ITwitchPubSub
extends AutoCloseable
Deprecated.
Twitch will decommission PubSub on April 14, 2025, with shutdown windows starting in February.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.com.github.philippheuer.events4j.core.EventManagerDeprecated.longDeprecated.default PubSubSubscriptionlistenForAdPropertyRefreshEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForAdsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForAdsManagerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForAutomodLevelsModificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForAutomodQueueEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForBitsBadgeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForBountyBoardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForBroadcastSettingUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForCelebrationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelBitsLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelBitsLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelBitsLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscriptionlistenForChannelBitsLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelChatroomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelDropEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelExtensionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelPointsRedemptionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission PubSub on April 14, 2025.default PubSubSubscriptionlistenForChannelPredictionsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelPrimeGiftStatusEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelSquadEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelSubGiftsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelSubLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelSubLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelSubLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscriptionlistenForChannelSubLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChannelUnbanRequestEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForCharityCampaignEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForChatHighlightEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForCheerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForCommerceEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForCommunityBoostEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForCreatorGoalsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForCrowdChantEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.the crowd chant experiment was disabled by Twitch on 2022-02-02default PubSubSubscriptionlistenForDashboardActivityFeedEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForExtensionControlEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForFollowingEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch has silently disabled this topic, even for first-party moderator tokens.default PubSubSubscriptionlistenForFollows(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Event Listener: Your account follows or unfollows any channel.default PubSubSubscriptionlistenForFriendshipEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25default PubSubSubscriptionlistenForHypeTrainEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForHypeTrainRewardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscriptionlistenForLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForLowTrustUsersEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForModerationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.in favor of listenForModerationEvents(OAuth2Credential, String, String)default PubSubSubscriptionlistenForModerationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForOnsiteNotificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForPinnedChatEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForPollEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForPresenceEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25default PubSubSubscriptionlistenForPublicBitEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForPublicCheerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForRadioEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) default PubSubSubscriptionlistenForRaidEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForSharedChatEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForShieldModeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForShoutoutEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForStreamChangeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForStreamChatRoomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForSubscriptionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForUserBitsUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserCampaignEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserChannelPointsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserChatroomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserDropEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserImageUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserModerationNotificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscriptionlistenForUserPredictionsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserPropertiesUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserSubscribeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscriptionlistenForUserUnbanRequestEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscriptionlistenForVideoPlaybackByNameEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelName) Deprecated.default PubSubSubscriptionlistenForVideoPlaybackEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForWatchPartyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscriptionlistenForWhisperEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.listenOnTopic(PubSubRequest request) Deprecated.Send WS Message to subscribe to a topicdefault PubSubSubscriptionlistenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String topic) Deprecated.default PubSubSubscriptionlistenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String... topics) Deprecated.default PubSubSubscriptionlistenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, Collection<String> topics) Deprecated.booleanunsubscribeFromTopic(PubSubSubscription subscription) Deprecated.Unsubscribe from a topic.
-
Method Details
-
getEventManager
com.github.philippheuer.events4j.core.EventManager getEventManager()Deprecated. -
listenOnTopic
Deprecated.Send WS Message to subscribe to a topic- Parameters:
request- Topic- Returns:
- PubSubSubscription to be listened to
-
unsubscribeFromTopic
Deprecated.Unsubscribe from a topic. Usage example:PubSubSubscription subscription = twitchPubSub.listenForCheerEvents(...); // ... twitchPubSub.unsubscribeFromTopic(subscription);- Parameters:
subscription- PubSubSubscription to be unlistened from- Returns:
- whether the subscription was previously subscribed to
-
close
void close()Deprecated.- Specified by:
closein interfaceAutoCloseable
-
listenOnTopic
default PubSubSubscription listenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, Collection<String> topics) Deprecated. -
listenOnTopic
default PubSubSubscription listenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String topic) Deprecated. -
listenOnTopic
default PubSubSubscription listenOnTopic(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String... topics) Deprecated. -
listenForAutomodQueueEvents
@Deprecated default PubSubSubscription listenForAutomodQueueEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: AutoMod flags a message as potentially inappropriate, and when a moderator takes action on a message.- Parameters:
credential- Credential (for userId, scope: channel:moderate)userId- The moderator's user id associated with the credentialchannelId- The user id associated with the target channel- Returns:
- PubSubSubscription
- See Also:
-
listenForBitsBadgeEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForBitsBadgeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: User earned a new Bits badge and shared the notification with chat- Parameters:
credential- Credential (for target channel id, scope: bits:read)channelId- Target Channel Id- Returns:
- PubSubSubscription
- See Also:
-
listenForCheerEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForCheerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: Anyone cheers on a specified channel.- Parameters:
credential- Credential (for target channel id, scope: bits:read)channelId- Target Channel Id- Returns:
- PubSubSubscription
- See Also:
-
listenForSubscriptionEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForSubscriptionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: Anyone subscribes (first month), resubscribes (subsequent months), or gifts a subscription to a channel.- Parameters:
credential- Credential (for targetChannelId, scope: channel_subscriptions)channelId- Target Channel Id- Returns:
- PubSubSubscription
- See Also:
-
listenForCommerceEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForCommerceEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: Anyone makes a purchase on a channel.- Parameters:
credential- Credential (any)channelId- Target Channel Id- Returns:
- PubSubSubscription
- See Also:
-
listenForWhisperEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForWhisperEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: Anyone whispers the specified user.- Parameters:
credential- Credential (for targetUserId, scope: whispers:read)userId- Target User Id- Returns:
- PubSubSubscription
- See Also:
-
listenForLowTrustUsersEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForLowTrustUsersEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: Suspicious user events.This includes when a chatter's treatment status changes (e.g., monitored or restricted), and when a treated user sends a chat message.
- Parameters:
credential- Moderator's user access token (scope: channel:moderate) associated with the specified user id.userId- The user id of the moderator.channelId- The channel id to monitor events from.- Returns:
- PubSubSubscription
- See Also:
-
listenForModerationEvents
@Deprecated @Unofficial @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForModerationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.in favor of listenForModerationEvents(OAuth2Credential, String, String)Event Listener: A moderator performs an action in the channel- Parameters:
credential- Credential (for channelId, scope: channel:moderate)channelId- Target Channel Id- Returns:
- PubSubSubscription
-
listenForModerationEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForModerationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: A moderator performs an action in the channel- Parameters:
credential- Credential (for userId, scope: channel:moderate)userId- The user id associated with the credentialchannelId- The user id associated with the target channel- Returns:
- PubSubSubscription
- See Also:
-
listenForUserModerationNotificationEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForUserModerationNotificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.Event Listener: A user’s message held by AutoMod has been approved or denied.- Parameters:
credential- Credential (for userId, scope: chat:read)userId- The user id associated with the credentialchannelId- The user id associated with the target channel- Returns:
- PubSubSubscription
- See Also:
-
listenForChannelPointsRedemptionEvents
@Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForChannelPointsRedemptionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission PubSub on April 14, 2025.Event Listener: Anyone makes a channel points redemption on a channel.- Parameters:
credential- Credential (with the channel:read:redemptions scope for maximum information)channelId- Target Channel Id- Returns:
- PubSubSubscription
-
listenForAdsEvents
@Unofficial default PubSubSubscription listenForAdsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForAdsManagerEvents
@Unofficial default PubSubSubscription listenForAdsManagerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForAdPropertyRefreshEvents
@Unofficial @Deprecated default PubSubSubscription listenForAdPropertyRefreshEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForAutomodLevelsModificationEvents
@Unofficial default PubSubSubscription listenForAutomodLevelsModificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForBountyBoardEvents
@Unofficial @Deprecated default PubSubSubscription listenForBountyBoardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForDashboardActivityFeedEvents
@Unofficial @Deprecated default PubSubSubscription listenForDashboardActivityFeedEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForCommunityBoostEvents
@Unofficial default PubSubSubscription listenForCommunityBoostEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForCreatorGoalsEvents
@Unofficial default PubSubSubscription listenForCreatorGoalsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForCrowdChantEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForCrowdChantEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.the crowd chant experiment was disabled by Twitch on 2022-02-02- Parameters:
credential-OAuth2CredentialchannelId- channel id- Returns:
- PubSubSubscription
-
listenForUserChannelPointsEvents
@Unofficial default PubSubSubscription listenForUserChannelPointsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForChannelDropEvents
@Unofficial @Deprecated default PubSubSubscription listenForChannelDropEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelBitsLeaderboardEvents
@Unofficial default PubSubSubscription listenForChannelBitsLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelBitsLeaderboardMonthlyEvents
@Unofficial default PubSubSubscription listenForChannelBitsLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelBitsLeaderboardAllTimeEvents
@Unofficial default PubSubSubscription listenForChannelBitsLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelBitsLeaderboardEvents
@Unofficial default PubSubSubscription listenForChannelBitsLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated. -
listenForChannelPrimeGiftStatusEvents
@Unofficial @Deprecated default PubSubSubscription listenForChannelPrimeGiftStatusEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelSubLeaderboardEvents
@Unofficial default PubSubSubscription listenForChannelSubLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelSubLeaderboardMonthlyEvents
@Unofficial default PubSubSubscription listenForChannelSubLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelSubLeaderboardAllTimeEvents
@Unofficial default PubSubSubscription listenForChannelSubLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelSubLeaderboardEvents
@Unofficial default PubSubSubscription listenForChannelSubLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated. -
listenForLeaderboardEvents
@Unofficial default PubSubSubscription listenForLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForLeaderboardMonthlyEvents
@Unofficial default PubSubSubscription listenForLeaderboardMonthlyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForLeaderboardAllTimeEvents
@Unofficial default PubSubSubscription listenForLeaderboardAllTimeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForLeaderboardEvents
@Unofficial default PubSubSubscription listenForLeaderboardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated. -
listenForPinnedChatEvents
@Unofficial default PubSubSubscription listenForPinnedChatEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelPredictionsEvents
@Unofficial default PubSubSubscription listenForChannelPredictionsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForUserPredictionsEvents
@Unofficial default PubSubSubscription listenForUserPredictionsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForChannelSubGiftsEvents
@Unofficial default PubSubSubscription listenForChannelSubGiftsEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelSquadEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForChannelSquadEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForRaidEvents
@Unofficial default PubSubSubscription listenForRaidEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelUnbanRequestEvents
@Unofficial default PubSubSubscription listenForChannelUnbanRequestEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForUserUnbanRequestEvents
@Unofficial default PubSubSubscription listenForUserUnbanRequestEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForChannelExtensionEvents
@Unofficial @Deprecated default PubSubSubscription listenForChannelExtensionEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForCharityCampaignEvents
@Unofficial default PubSubSubscription listenForCharityCampaignEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForExtensionControlEvents
@Unofficial @Deprecated default PubSubSubscription listenForExtensionControlEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForHypeTrainEvents
@Unofficial default PubSubSubscription listenForHypeTrainEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForHypeTrainRewardEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForHypeTrainRewardEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForBroadcastSettingUpdateEvents
@Unofficial default PubSubSubscription listenForBroadcastSettingUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForCelebrationEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForCelebrationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForPublicBitEvents
@Unofficial @Deprecated default PubSubSubscription listenForPublicBitEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChatHighlightEvents
@Unofficial default PubSubSubscription listenForChatHighlightEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForPublicCheerEvents
@Unofficial default PubSubSubscription listenForPublicCheerEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForStreamChangeEvents
@Unofficial @Deprecated default PubSubSubscription listenForStreamChangeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForStreamChatRoomEvents
@Unofficial @Deprecated default PubSubSubscription listenForStreamChatRoomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForChannelChatroomEvents
@Unofficial @Deprecated default PubSubSubscription listenForChannelChatroomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForUserChatroomEvents
@Unofficial default PubSubSubscription listenForUserChatroomEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserBitsUpdateEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserBitsUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserCampaignEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserCampaignEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserDropEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserDropEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserPropertiesUpdateEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserPropertiesUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserSubscribeEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserSubscribeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForUserImageUpdateEvents
@Unofficial @Deprecated default PubSubSubscription listenForUserImageUpdateEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForFollowingEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForFollowingEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch has silently disabled this topic, even for first-party moderator tokens. You should migrate to eventsub (websocket) channel.follow v2 subscription type.Event Listener: Anyone follows the specified channel.- Parameters:
credential-OAuth2CredentialchannelId- the id for the channel- Returns:
- PubSubSubscription
-
listenForFollows
@Unofficial default PubSubSubscription listenForFollows(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Event Listener: Your account follows or unfollows any channel.This is not a replacement for
listenForFollowingEvents(OAuth2Credential, String).Fires
OutboundFollowPubSubEventandOutboundUnfollowPubSubEvent.This is an unofficial topic that does not accept third-party tokens; it could stop working at any time.
- Parameters:
credential- first-party user tokenuserId- the id associated with the token for the user performing follows/unfollows- Returns:
- PubSubSubscription
-
listenForFriendshipEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForFriendshipEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25- Parameters:
credential- user access tokenuserId- user id associated with the token- Returns:
- PubSubSubscription
-
listenForOnsiteNotificationEvents
@Unofficial default PubSubSubscription listenForOnsiteNotificationEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated. -
listenForPollEvents
@Unofficial default PubSubSubscription listenForPollEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForPresenceEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForPresenceEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25- Parameters:
credential- user access tokenuserId- user id associated with the token- Returns:
- PubSubSubscription
-
listenForRadioEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForRadioEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Unofficial: Listen for soundtrack events- Parameters:
credential- User Access TokenchannelId- Target Channel Id- Returns:
- PubSubSubscription
-
listenForShieldModeEvents
@Unofficial default PubSubSubscription listenForShieldModeEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated. -
listenForShoutoutEvents
@Unofficial default PubSubSubscription listenForShoutoutEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForVideoPlaybackEvents
@Unofficial default PubSubSubscription listenForVideoPlaybackEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
listenForVideoPlaybackByNameEvents
@Unofficial default PubSubSubscription listenForVideoPlaybackByNameEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelName) Deprecated. -
listenForWatchPartyEvents
@Unofficial @Deprecated @ScheduledForRemoval(inVersion="2.0.0") default PubSubSubscription listenForWatchPartyEvents(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated. -
getLatency
long getLatency()Deprecated.- Returns:
- the most recently measured round-trip latency for the socket(s) in milliseconds, or -1 if unknown
-