is an option to ChannelListen that specifies the maximum number of messages to cache in the channel listener object.


ChannelHistoryLength
is an option to ChannelListen that specifies the maximum number of messages to cache in the channel listener object.
Details

- The default value of ChannelHistoryLength is 100.
- The following settings can be used:
-
Infinity all messages n the n most recent messages
Examples
Basic Examples (1)
Create a channel listener with ChannelHistoryLength set to 10:
Send 20 messages to the channel:
See Also
History
Text
Wolfram Research (2020), ChannelHistoryLength, Wolfram Language function, https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.
CMS
Wolfram Language. 2020. "ChannelHistoryLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ChannelHistoryLength.html.
APA
Wolfram Language. (2020). ChannelHistoryLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ChannelHistoryLength.html
BibTeX
@misc{reference.wolfram_2025_channelhistorylength, author="Wolfram Research", title="{ChannelHistoryLength}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ChannelHistoryLength.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_channelhistorylength, organization={Wolfram Research}, title={ChannelHistoryLength}, year={2020}, url={https://reference.wolfram.com/language/ref/ChannelHistoryLength.html}, note=[Accessed: 11-August-2025]}