index/classes/TypingIndicatorDebouncer.md
Constructors
Constructor
new TypingIndicatorDebouncer(
config?,_logger?):TypingIndicatorDebouncer
Parameters
| Parameter | Type |
|---|---|
config? | TypingIndicatorConfig |
_logger? | Logger |
Returns
TypingIndicatorDebouncer
typing indicator debouncer config
Accessors
activeCount
Get Signature
get activeCount():
number
Get count of active typing indicators
Returns
number
Number of users currently typing
active count
Methods
clear()
clear():
void
Clear all pending typing indicators
Returns
void
indicate()
indicate(
userId,roomId):void
Indicate that a user is typing
If user is already typing, the debounce window is reset. Stop indicator is sent after delayMs of inactivity.
Parameters
| Parameter | Type | Description |
|---|---|---|
userId | string | User identifier |
roomId | string | Room identifier (e.g., 'token:anime') |
Returns
void
user id room
stopTyping()
stopTyping(
userId,roomId):void
Explicitly stop typing indicator for a user
Parameters
| Parameter | Type | Description |
|---|---|---|
userId | string | User identifier |
roomId | string | Room identifier |
Returns
void
stop typing user id room