From: lain Date: Fri, 29 May 2020 14:07:40 +0000 (+0200) Subject: Docs: Also add the streaming docs to the Chat api doc. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=32431ad1ee88d260b720fab05fce76eb75bfe107;p=akkoma Docs: Also add the streaming docs to the Chat api doc. --- diff --git a/docs/API/chats.md b/docs/API/chats.md index 2e415e4da..2eca5adf6 100644 --- a/docs/API/chats.md +++ b/docs/API/chats.md @@ -220,3 +220,7 @@ There's a new `pleroma:chat_mention` notification, which has this form: "created_at": "somedate" } ``` + +### Streaming + +There is an additional `user:pleroma_chat` stream. Incoming chat messages will make the current chat be sent to this `user` stream. The `event` of an incoming chat message is `pleroma:chat_update`. The payload is the updated chat with the incoming chat message in the `last_message` field.