Overview

Typing indicators show when users are composing messages. They are conversation-scoped and automatically expire.

Sending Typing Start

Sending Typing Stop

Receiving Typing Events

Typing events are broadcast to room members:

States

Auto-Expiration

Typing indicators automatically expire after 5 seconds. If the user is still typing, send typing_start again to keep the indicator alive.

Complete Implementation

Input Handler Pattern

Debounce typing events based on user activity:

Display Typing Indicator

Best Practices

Debounce

Don’t send typing_start on every keystroke.

Stop on Send

Always stop typing before sending a message.

Keep Alive

Resend typing_start every 4 seconds while typing.

Clean Up

Clear timers when component unmounts.

Next Steps

Receipts

Read receipts

Presence

Presence system

SDK Typing

SDK typing guide

Messaging

Real-time messaging