Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Save history flag

The saveHistory option on send() controls whether a message is persisted for later retrieval via fetchChatHistory. It defaults to true.


Behavior

saveHistory

Effect

true (default)

Message stored; appears in fetchChatHistory

false

Live delivery only; not stored in chat history

await notifier.send({
  senderId: "user-alice",
  receiverId: "user-bob",
  data: { type: "text", text: "This will be saved" },
  saveHistory: true,
});

await notifier.send({
  senderId: "user-alice",
  receiverId: "user-bob",
  data: { type: "typing" },
  saveHistory: false,
});

Dart:


When to set saveHistory: false

Payload
Reason

Typing indicators

Ephemeral UX signals

Presence / online status

No need to persist

Read receipts (if implemented via send)

Transient state

High-frequency telemetry in a chat UI

Avoid history bloat


Chat vs realtime-only sends

Use case

saveHistory

1:1 chat text

true (default)

Support conversation

true

Live cursor / typing

false

Dashboard metric push

false (not chat)

For non-chat realtime patterns, see Realtime communication overview.


Plan storage

Persisted messages count toward plan storage limits (maxRowsPerUser and related quotas from getPlanLimits()). See Plan limits & quotas.


Last updated