Mattermost, Inc.

Typing indicator?

Hello!

I’ve noticed in the logs a message /api/v3/users/websocket:user_typing whenever a user is typing. I’m interested in having a typing indicator that would indicate the user who is currently typing.

Would this API be appropriate for this purpose? Is there a plan to build user typing indicators into the web and mobile UI?

Thanks,
Alexis

Hi @alexissmirnov,

The web and mobile UI should already show that beneath the new message textbox, and it uses the exact API you mentioned. They’re intentionally faded so that they won’t be too distracting, but they should be there. If you’re not seeing them, there may be a problem with your websocket or perhaps your theme colours.

Thanks! Can you link to the documentation of /api/v3/users/websocket:user_typing?

We don’t have any formal documentation for it yet, but you can look websocket_actions.jsx to see how we handle it on the webapp.