Browse SDKs · WASM
SDKsWASM

Get typing status

Query a specified member’s current typing status with the WASM SDK.

Copy

When entering a conversation, restoring a connection, or reconciling state, query the platforms on which a specified member is still typing:

const { data: platformIDs } = await openimsdk.getInputstates({
  conversationID,
  userID: memberUserID,
});

setTyping(memberUserID, platformIDs.length > 0);

The Promise returns a snapshot array of platform IDs. The query itself does not trigger a typing-status event. In a group chat, do not poll every member. Maintain the set of typing users through the event owned by Report typing status.