1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-27 09:15:07 +01:00

Docs: Also add the streaming docs to the Chat api doc.

This commit is contained in:
lain 2020-05-29 16:07:40 +02:00
parent 3898dd69a6
commit 32431ad1ee

View File

@ -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.