Publish additional change related events over WS
Change meta events are published after all entity CRUD operations. They are sent to a single STOMP topic per room and consist of the change type, entity type and entity ID.
STOMP topic: <Room ID>.changes-meta.stream
Event properties:
- changeType: CREATE | UPDATE | DELETE
- entityType: String
- entityId: String
Also, new events are published for room stats. Specific changes cannot be detected for non-entities, so the whole object is sent as payload.
Two topics are used, one for publicly visible and one for moderator roles. These topics are intended to be used for other non-entity changes in the future.
STOMP topics:
<Room ID>.changes.stream
<Room ID>.moderator.changes.stream
Event structure:
The full RoomStatistics
object is sent without wrapper. The STOMP
header __TypeId__
can be used on the client side to filter events by
type.
Related: particify/dev/common-concerns#14