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.

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