BaseChatEventHandler

More specific ChatEventHandler implementation that gives you a separation between CidEvent and HasChannel events.

The channel will be removed from the set after receiving ChannelDeletedEvent, NotificationChannelDeletedEvent, ChannelHiddenEvent events.

The channel will be watched and added to the set after receiving ChannelVisibleEvent event.

Other events will be skipped.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Handles HasChannel event which contains specific Channel object.

Link copied to clipboard
open override fun handleChatEvent(event: ChatEvent, filter: FilterObject, cachedChannel: Channel?): EventHandlingResult

Computes the event handling result.

Link copied to clipboard
open fun handleCidEvent(event: CidEvent, filter: FilterObject, cachedChannel: Channel?): EventHandlingResult

Handles CidEvent event which is associated with a specific Channel which can be tracked using CidEvent.cid.