ChannelMessageLimit

constructor(channelType: String, baseLimit: Int)

Parameters

channelType

The type of the channel for which this limit applies (e.g., "messaging", "livestream", "commerce"). This should match the channel type used when creating channels. Channel types not specified in the configuration will have no message limits applied.

baseLimit

The maximum number of messages to keep in memory for channels of this type. When the message count exceeds baseLimit + 30 (the buffer), the SDK trims messages down to this limit. Must be a positive integer. The 30-message buffer is included to avoid trimming too frequently during normal message flow.