select navigate esc close

Chat SDK now supports concurrent message handling

Vercel News·

Chat SDK now lets you control what happens when a new message arrives before a previous one finishes processing, with the new concurrency option for the Chat class.

Four strategies are available:

  • drop (default): discards incoming messages
  • queue: processes the latest message after the handler finishes
  • debounce: waits for a pause in conversation, processes only the final message
  • concurrent: processes every message immediately, no locking

Read the documentation to get started.

Read more