Note: The topic path of connection announcements contains a _ (underscore) as namespace
and no channel element.
See the specification for
details.
Connection announcements
A connection announcement contains the announcement name as last part of the topic:
_/<connectionId>/connections/announcements/<announcement-name>
The Ditto Protocol representation of an Announcement
is specified as follows:
The following Connection announcements are currently supported:
ConnectionOpenedAnnouncement
Announcement indicating that the connection is being opened.
Field | Value |
---|---|
topic | _/<connectionId>/connections/announcements/opened |
path | / |
value | JsonObject containing* openedAt timestamp (as ISO-8601 string ) |
Example: Announcement for connection opened
ConnectionClosedAnnouncement
Announcement indicating that the connection is being closed gracefully.
Field | Value |
---|---|
topic | _/<connectionId>/connections/announcements/closed |
path | / |
value | JsonObject containing* closedAt timestamp (as ISO-8601 string ) |
Example: Announcement for connection closed