Skip to content

Event catalog

Every modern-client event, its subscription name, and payload type.

Use connection.on(WebcastEvent.NAME, handler) for livestream messages and ControlEvent.NAME for connection notifications. Enum values and their string aliases identify the same listener.

import { TikTokLiveConnection, WebcastEvent } from 'tiktok-live-connector';
const connection = new TikTokLiveConnection('creator_username', {});
connection.on(WebcastEvent.CHAT, (event) => {
console.log(event.user?.displayId, event.content);
});
await connection.connect();

The tables cover all 68 WebcastEvent members in this checkout. See control events for all eight ControlEvent members and their argument lists. Types are inferred from ClientEventMap; the API reference and protobuf reference provide their full definitions.

Messages are not flattened. IDs and 64-bit counts often use strings; nested messages can be absent. A defined subscription does not guarantee that TikTok emits it in every room. Fields described only by the schema should not be treated as a verified live workflow.

EventListener stringPayloadReference
WebcastEvent.CHATchatWebcastChatMessageChat and audience
WebcastEvent.MEMBERmemberWebcastMemberMessageChat and audience
WebcastEvent.ROOM_USERroomUserWebcastRoomUserSeqMessageChat and audience
WebcastEvent.LIKElikeWebcastLikeMessageChat and audience
WebcastEvent.SOCIALsocialWebcastSocialMessageChat and audience
WebcastEvent.FOLLOWfollowWebcastSocialMessageChat and audience
WebcastEvent.SHAREshareWebcastSocialMessageChat and audience
WebcastEvent.QUESTION_NEWquestionNewWebcastQuestionNewMessageChat and audience
WebcastEvent.EMOTEemoteWebcastEmoteChatMessageChat and audience
WebcastEvent.GIFTgiftWebcastGiftMessageGifts and goals
WebcastEvent.ENVELOPEenvelopeWebcastEnvelopeMessageGifts and goals
WebcastEvent.GOAL_UPDATEgoalUpdateWebcastGoalUpdateMessageGifts and goals
WebcastEvent.BOOST_CARDboostCardWebcastBoostCardMessageGifts and goals
WebcastEvent.GIFT_BROADCASTgiftBroadcastWebcastGiftBroadcastMessageGifts and goals
WebcastEvent.GIFT_DYNAMIC_RESTRICTIONgiftDynamicRestrictionWebcastGiftDynamicRestrictionMessageGifts and goals
WebcastEvent.GIFT_PANEL_UPDATEgiftPanelUpdateWebcastGiftPanelUpdateMessageGifts and goals
WebcastEvent.GIFT_PROMPTgiftPromptWebcastGiftPromptMessageGifts and goals
WebcastEvent.LINK_MIC_BATTLElinkMicBattleWebcastLinkMicBattleBattles and cohosting
WebcastEvent.LINK_MIC_ARMIESlinkMicArmiesWebcastLinkMicArmiesBattles and cohosting
WebcastEvent.LINK_MIC_BATTLE_ITEM_CARDlinkMicBattleItemCardWebcastLinkMicBattleItemCardBattles and cohosting
WebcastEvent.LINK_MIC_BATTLE_PUNISH_FINISHlinkMicBattlePunishFinishWebcastLinkMicBattlePunishFinishBattles and cohosting
WebcastEvent.LINK_MIC_BATTLE_TASKlinkMicBattleTaskWebcastLinkmicBattleTaskMessageBattles and cohosting
WebcastEvent.LINK_MIC_FAN_TICKET_METHODlinkMicFanTicketMethodWebcastLinkMicFanTicketMethodBattles and cohosting
WebcastEvent.LINK_MIC_METHODlinkMicMethodWebcastLinkMicMethodBattles and cohosting
WebcastEvent.LINK_MESSAGElinkMessageWebcastLinkMessageBattles and cohosting
WebcastEvent.LINK_LAYERlinkLayerWebcastLinkLayerMessageBattles and cohosting
WebcastEvent.LINK_MIC_LAYOUT_STATElinkMicLayoutStateWebcastLinkMicLayoutStateMessageBattles and cohosting
WebcastEvent.LINK_STATElinkStateWebcastLinkStateMessageBattles and cohosting
WebcastEvent.SPEAKERspeakerWebcastSpeakerMessageBattles and cohosting
WebcastEvent.SUPER_FANsuperFanWebcastBarrageMessageSubscriptions and super fans
WebcastEvent.SUPER_FAN_JOINsuperFanJoinWebcastBarrageMessageSubscriptions and super fans
WebcastEvent.SUPER_FAN_BOXsuperFanBoxWebcastEnvelopeMessageSubscriptions and super fans
WebcastEvent.SUB_NOTIFYsubNotifyWebcastSubNotifyMessageSubscriptions and super fans
WebcastEvent.SUB_PIN_EVENTsubPinEventWebcastSubPinEventMessageSubscriptions and super fans
WebcastEvent.LIVE_INTROliveIntroWebcastLiveIntroMessageRoom messages and display
WebcastEvent.BARRAGEbarrageWebcastBarrageMessageRoom messages and display
WebcastEvent.SYSTEMsystemWebcastSystemMessageRoom messages and display
WebcastEvent.ROOM_MESSAGEroomMessageWebcastRoomMessageRoom messages and display
WebcastEvent.CAPTION_MESSAGEcaptionMessageWebcastCaptionMessageRoom messages and display
WebcastEvent.IN_ROOM_BANNERinRoomBannerWebcastInRoomBannerMessageRoom messages and display
WebcastEvent.POLL_MESSAGEpollMessageWebcastPollMessageRoom messages and display
WebcastEvent.ROOM_PINroomPinWebcastRoomPinMessageRoom messages and display
WebcastEvent.BOTTOM_MESSAGEbottomMessageWebcastBottomMessageRoom messages and display
WebcastEvent.CAPSULEcapsuleWebcastCapsuleMessageRoom messages and display
WebcastEvent.GUIDEguideWebcastGuideMessageRoom messages and display
WebcastEvent.MARQUEE_ANNOUNCEMENTmarqueeAnnouncementWebcastMarqueeAnnouncementMessageRoom messages and display
WebcastEvent.NOTICEnoticeWebcastNoticeMessageRoom messages and display
WebcastEvent.ROOM_NOTIFYroomNotifyWebcastRoomNotifyMessageRoom messages and display
WebcastEvent.TOASTtoastWebcastToastMessageRoom messages and display
WebcastEvent.VIEWER_PICKS_UPDATEviewerPicksUpdateWebcastViewerPicksUpdateMessageRoom messages and display
WebcastEvent.HOURLY_RANKhourlyRankWebcastHourlyRankRewardMessageRankings
WebcastEvent.RANK_UPDATErankUpdateWebcastRankUpdateMessageRankings
WebcastEvent.RANK_TEXTrankTextWebcastRankTextMessageRankings
WebcastEvent.GAME_RANK_NOTIFYgameRankNotifyWebcastGameRankNotifyMessageRankings
WebcastEvent.IM_DELETEimDeleteWebcastImDeleteMessageModeration and access
WebcastEvent.UNAUTHORIZED_MEMBERunauthorizedMemberWebcastUnauthorizedMemberMessageModeration and access
WebcastEvent.MSG_DETECTmsgDetectWebcastMsgDetectMessageModeration and access
WebcastEvent.ROOM_VERIFYroomVerifyWebcastRoomVerifyMessageModeration and access
WebcastEvent.ACCESS_CONTROLaccessControlWebcastAccessControlMessageModeration and access
WebcastEvent.ACCESS_RECALLaccessRecallWebcastAccessRecallMessageModeration and access
WebcastEvent.PERCEPTIONperceptionWebcastPerceptionMessageModeration and access
WebcastEvent.OEC_LIVE_SHOPPINGoecLiveShoppingWebcastOecLiveShoppingMessageGames, commerce, and partnerships
WebcastEvent.LIVE_GAME_INTROliveGameIntroWebcastLiveGameIntroMessageGames, commerce, and partnerships
WebcastEvent.PARTNERSHIP_DROPS_UPDATEpartnershipDropsUpdateWebcastPartnershipDropsUpdateMessageGames, commerce, and partnerships
WebcastEvent.PARTNERSHIP_GAME_OFFLINEpartnershipGameOfflineWebcastPartnershipGameOfflineMessageGames, commerce, and partnerships
WebcastEvent.PARTNERSHIP_PUNISHpartnershipPunishWebcastPartnershipPunishMessageGames, commerce, and partnerships
WebcastEvent.CONTROL_MESSAGEcontrolMessageWebcastControlMessageStream control
WebcastEvent.STREAM_ENDstreamEnd{ action: ControlAction }Stream control

Register listeners before connecting to receive initial data. Disable processInitialData if your application should skip the signing response’s historical batch.

The modern dispatcher sends each recognized social follow/share to its derived event instead of SOCIAL. Super-fan barrage/envelope messages additionally emit their original BARRAGE/ENVELOPE event; do not double-count them if listening to both.

Asynchronous listeners need their own rejection handling. The client does not await your listener’s returned promise. Decode filters affect all connections and also suppress events derived from filtered messages.