Temit

Temit

  • Getting Started
  • API
  • Github
  • npm
  • Discord

temit > ListenerOptions > buffer

ListenerOptions.buffer property

Sets whether or not the listener should buffer incoming messages should it go offline. This (true) is the default behaviour.

If buffer is set to false, the listener will behave more like a regular pub/sub communication method; it will only receive messages while it's listening, and will miss all messages that are sent while it's not.

This can be useful if you wish to temporarily tap in to an emission or for high-load, non-critical listeners.

Signature:

buffer?: boolean;
  • ListenerOptions.buffer property
Temit
Docs
Getting StartedRecipesAPI Reference
Community
DiscordGitHubStar
Copyright © 2021 Temit