SDK
SDK C# v2.x
2

Notifications #

The Realtime.SubscribeAsync 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 JObject is the notification content, and it has the following structure:

PropertyTypeDescription
_id
string
Document unique ID<br/null` if the notification is from a real-time message
_source
JObject
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:

PropertyTypeDescription
count
long
Updated users count sharing that same subscription