STOMP destination для отметки сообщений как прочитанных.
Подключение:
- SockJS endpoint:
/ws - STOMP destination:
/app/chat.read
При успешной обработке другому участнику диалога отправляется уведомление в /user/queue/chat.read_message. Ошибки приходят в /user/queue/errors.
- https://felmee.comhttps://felmee.com/app/chat.read
- http://localhost:8080http://localhost:8080/app/chat.read
curl -i -X POST \
https://felmee.com/app/chat.read \
-H 'Content-Type: application/json' \
-d '{
"dialog_id": 10,
"last_read_message_id": 105
}'Response
{ "dialog_id": 10, "last_read_message_id": 105 }