Mattermost, Inc.

Automatically updates upon new message

Is there an api call that will update me when a new post has been received by the server so I can display it to the relevant recipients?

If not, how can I tell when a user has sent a message so that I can add his message to the screen?

Can I get an example on how to use websockets?

Hi Julia,

Websockets would be the best way to accomplish this. You can see how they work in our example bot here: