Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 1.61 KB

File metadata and controls

32 lines (22 loc) · 1.61 KB
code type title description order
false
page
Realtime notifications
List of realtime notifications sent by Kuzzle
300

Notifications

The RealtimeController.subscribe method takes a handler argument, called with a Response object, whose content of the Result property depends on the type of notification received.

Document & messages

These notifications represent documents changes & messages.

The Result ConcurrentHashMap is the notification content, and it has the following structure:

Property Type Description
_id
String
Document unique ID
null if the notification is from a real-time message
_source
ConcurrentHashMap<String, Object>
Message or full document content. Not present if the event is about a document deletion

User

These notifications represent user events.

The Result JObject is the notification content, and it has the following structure:

Property Type Description
count
Long
Updated users count sharing that same subscription