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 TypeMethodDescriptionvoid
close()
Deprecated.com.github.philippheuer.events4j.core.EventManager
Deprecated.long
Deprecated.default PubSubSubscription
listenForAdPropertyRefreshEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForAdsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForAdsManagerEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscription
listenForAutomodLevelsModificationEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) 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.default PubSubSubscription
listenForBitsBadgeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscription
listenForBountyBoardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForBroadcastSettingUpdateEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForCelebrationEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelBitsLeaderboardAllTimeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelBitsLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelBitsLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscription
listenForChannelBitsLeaderboardMonthlyEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelChatroomEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelDropEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelExtensionEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelPointsRedemptionEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission PubSub on April 14, 2025.default PubSubSubscription
listenForChannelPredictionsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelPrimeGiftStatusEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelSquadEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelSubGiftsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelSubLeaderboardAllTimeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelSubLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelSubLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscription
listenForChannelSubLeaderboardMonthlyEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChannelUnbanRequestEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscription
listenForCharityCampaignEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForChatHighlightEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscription
listenForCheerEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscription
listenForCommerceEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscription
listenForCommunityBoostEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForCreatorGoalsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForCrowdChantEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.the crowd chant experiment was disabled by Twitch on 2022-02-02default PubSubSubscription
listenForDashboardActivityFeedEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForExtensionControlEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.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.default PubSubSubscription
listenForFollows
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Event Listener: Your account follows or unfollows any channel.default PubSubSubscription
listenForFriendshipEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25default PubSubSubscription
listenForHypeTrainEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForHypeTrainRewardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForLeaderboardAllTimeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForLeaderboardEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId, String timeAggregationUnit) Deprecated.default PubSubSubscription
listenForLeaderboardMonthlyEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.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.default PubSubSubscription
listenForModerationEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.in favor of listenForModerationEvents(OAuth2Credential, String, String)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.default PubSubSubscription
listenForOnsiteNotificationEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForPinnedChatEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForPollEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForPresenceEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.Friends are being removed by Twitch on 2022-05-25default PubSubSubscription
listenForPublicBitEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForPublicCheerEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForRadioEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) default PubSubSubscription
listenForRaidEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForSharedChatEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForShieldModeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscription
listenForShoutoutEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForStreamChangeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForStreamChatRoomEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForSubscriptionEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.Twitch will decommission all official PubSub topics on April 14, 2025.default PubSubSubscription
listenForUserBitsUpdateEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserCampaignEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserChannelPointsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserChatroomEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserDropEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserImageUpdateEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.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.default PubSubSubscription
listenForUserPredictionsEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserPropertiesUpdateEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserSubscribeEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId) Deprecated.default PubSubSubscription
listenForUserUnbanRequestEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String userId, String channelId) Deprecated.default PubSubSubscription
listenForVideoPlaybackByNameEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelName) Deprecated.default PubSubSubscription
listenForVideoPlaybackEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForWatchPartyEvents
(com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String channelId) Deprecated.default PubSubSubscription
listenForWhisperEvents
(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 PubSubSubscription
listenOnTopic
(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String topic) Deprecated.default PubSubSubscription
listenOnTopic
(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, String... topics) Deprecated.default PubSubSubscription
listenOnTopic
(PubSubType type, com.github.philippheuer.credentialmanager.domain.OAuth2Credential credential, Collection<String> topics) Deprecated.boolean
unsubscribeFromTopic
(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:
close
in 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
-OAuth2Credential
channelId
- 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
-OAuth2Credential
channelId
- 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
OutboundFollowPubSubEvent
andOutboundUnfollowPubSubEvent
.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
-