diff options
author | lain <lain@soykaf.club> | 2020-05-29 16:07:40 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-29 16:07:40 +0200 |
commit | 32431ad1ee88d260b720fab05fce76eb75bfe107 (patch) | |
tree | 8d89f6feddd36afe8c4b55aaaa82520fb810971b | |
parent | 3898dd69a69d3af9793f2e1d442b409c84b319a8 (diff) | |
download | pleroma-32431ad1ee88d260b720fab05fce76eb75bfe107.tar.gz |
Docs: Also add the streaming docs to the Chat api doc.
-rw-r--r-- | docs/API/chats.md | 4 |
1 files changed, 4 insertions, 0 deletions
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. |