Notifications

Nodes can receive notifications about certain events from naming servers and other nodes. Notifications are sent through REST API of the receiving node. See Overview for the detailed description of notifications, their purpose and sending mechanism.

Notification packet

Notifications are sent in packets. The packet structure is described in Node API documentation. Each packet contains the type field, containing the type of the notification and notification field, containing the notification details in JSON form. The notification structure depends on the type. See the description below.

FEED_POSTING_ADDED

A new posting added in a feed the receiver is subscribed to

Type Field Comment
String subscriberId subscriber ID of the receiving node on the sending node
String feedName name of the feed on the sending node
String postingId ID of the posting on the sending node

MENTION_POSTING_ADDED

A mention of the receiver in a posting on the sending node added

Type Field Comment
String postingId ID of the posting on the sending node
String heading Heading of the posting

MENTION_POSTING_DELETED

A mention of the receiver in a posting on the sending node deleted

Type Field Comment
String postingId ID of the posting on the sending node

POSTING_DELETED

Posting the receiver is subscribed to has been deleted.

Type Field Comment
String subscriberId subscriber ID of the receiving node on the sending node
String postingId ID of the posting on the sending node

POSTING_REACTIONS_UPDATED

Reactions have been updated at the posting the receiver is subscribed to.

Type Field Comment
String subscriberId subscriber ID of the receiving node on the sending node
String postingId ID of the posting on the sending node
ReactionTotalsInfo totals updated reaction totals of the posting

POSTING_UPDATED

Posting the receiver is subscribed to has been updated.

Type Field Comment
String subscriberId subscriber ID of the receiving node on the sending node
String postingId ID of the posting on the sending node