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.
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.
Reaction added to a comment owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
String
|
ownerName |
name of the reaction owner |
String
|
ownerFullName |
full name of the reaction owner |
AvatarImage
|
ownerAvatar |
avatar of the reaction owner |
boolean
|
negative |
true , if the reaction is negative, false , if positive |
int
|
emoji |
reaction code, usually interpreted by clients as emoji code point |
String
|
postingHeading |
heading of the posting |
String
|
commentHeading |
heading of the comment |
Reaction deleted from a comment owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
String
|
ownerName |
name of the reaction owner |
String
|
ownerFullName |
full name of the reaction owner |
AvatarImage
|
ownerAvatar |
avatar of the reaction owner |
boolean
|
negative |
true , if the reaction is negative, false , if positive |
All reactions deleted from a comment owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
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 |
A mention of the receiver in a comment on the sending node added.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
String
|
postingHeading |
heading of the posting |
String
|
commentOwnerName |
name of the comment owner |
String
|
commentOwnerFullName |
full name of the comment owner |
AvatarImage
|
commentOwnerAvatar |
avatar of the comment owner |
String
|
commentHeading |
heading of the comment |
A mention of the receiver in a comment on the sending node deleted.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
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 |
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 |
A comment added to 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 |
String
|
commentId |
ID of the comment on the sending node |
String
|
commentOwnerName |
name of the comment owner |
String
|
commentOwnerFullName |
full name of the comment owner |
AvatarImage
|
commentOwnerAvatar |
avatar of the comment owner |
String
|
postingHeading |
heading of the posting |
String
|
commentHeading |
heading of the comment |
String
|
commentRepliedTo |
ID of the comment on the sending node this comment replies to |
A comment deleted from 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 |
String
|
commentId |
ID of the comment on the sending node |
String
|
commentOwnerName |
name of the comment owner |
String
|
commentOwnerFullName |
full name of the comment owner |
AvatarImage
|
commentOwnerAvatar |
avatar of the comment owner |
Comments 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 |
int
|
total |
updated total number of comments to the posting |
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 |
An important update was done to the posting the receiver is subscribed to (subscription to comments is enough).
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 |
String
|
postingHeading |
heading of the posting |
String
|
description |
description of the update |
Reaction added to a posting owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
parentPostingId |
ID of the posting containing the media or containing the comment that contains the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
parentCommentId |
ID of the comment containing the media linked to the posting in question (present only if the posting in question is linked to a media attached to a comment) |
String
|
parentMediaId |
ID of the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
postingId |
ID of the posting on the sending node |
String
|
ownerName |
name of the reaction owner |
String
|
ownerFullName |
full name of the reaction owner |
AvatarImage
|
ownerAvatar |
avatar of the reaction owner |
boolean
|
negative |
true , if the reaction is negative, false , if positive |
int
|
emoji |
reaction code, usually interpreted by clients as emoji code point |
String
|
parentHeading |
heading of the posting |
String
|
postingHeading |
heading of the posting |
Reaction deleted from a posting owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
parentPostingId |
ID of the posting containing the media or containing the comment that contains the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
parentCommentId |
ID of the comment containing the media linked to the posting in question (present only if the posting in question is linked to a media attached to a comment) |
String
|
parentMediaId |
ID of the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
postingId |
ID of the posting on the sending node |
String
|
ownerName |
name of the reaction owner |
String
|
ownerFullName |
full name of the reaction owner |
AvatarImage
|
ownerAvatar |
avatar of the reaction owner |
boolean
|
negative |
true , if the reaction is negative, false , if positive |
Deleted all reactions from a posting owned by the receiver.
Type | Field | Comment |
---|---|---|
String
|
parentPostingId |
ID of the posting containing the media or containing the comment that contains the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
parentCommentId |
ID of the comment containing the media linked to the posting in question (present only if the posting in question is linked to a media attached to a comment) |
String
|
parentMediaId |
ID of the media linked to the posting in question (present only if the posting in question is linked to a media) |
String
|
postingId |
ID of the posting on the sending node |
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 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 |
Sender's profile the receiver is subscribed to has been updated.
Type | Field | Comment |
---|---|---|
String
|
subscriberId |
subscriber ID of the receiving node on the sending node |
A reply to a comment of the receiver on the sending node added.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
String
|
repliedToId |
ID of the comment on the sending node that is replied to |
String
|
postingHeading |
heading of the posting |
String
|
commentOwnerName |
name of the comment owner |
String
|
commentOwnerFullName |
full name of the comment owner |
AvatarImage
|
commentOwnerAvatar |
avatar of the comment owner |
String
|
commentHeading |
heading of the comment |
String
|
repliedToHeading |
heading of the comment that is repliedTo |
A reply to a comment of the receiver on the sending node deleted.
Type | Field | Comment |
---|---|---|
String
|
postingId |
ID of the posting on the sending node |
String
|
commentId |
ID of the comment on the sending node |
String
|
repliedToId |
ID of the comment on the sending node that is replied to |
String
|
commentOwnerName |
name of the comment owner |
String
|
commentOwnerFullName |
full name of the comment owner |
AvatarImage
|
commentOwnerAvatar |
avatar of the comment owner |