UDP API Definition: Difference between revisions

Line 228: Line 228:


== Notify Commands ==
== Notify Commands ==
These commands offer a way to receive different types of notifications.
'''Simple HOWTO:'''
* PUSH to register.
* Listen for 271/272 NOTIFICATIONs (not 290).
* PUSHACK the NOTIFICATIONs received (with the supplied ids [nid]).
* Use NOTIFY to get number of notifications / NOTIFYLIST to get a list of the notifications (with ids [not nid]).
* Use NOTIFYGET to receive a notification.
* Use NOTIFYACK to remove a notification (from NOTIFYLIST).
It is probably a good idea to use tags to separate NOTIFICATIONs from other the communication. NOTIFICATIONs will '''never''' have tags.
=== PUSH: UDP Notification Registration ===
=== PUSH: UDP Notification Registration ===
'''Command String:'''
'''Command String:'''
Line 353: Line 364:
----
----


=== NOTIFYACK: Ack Notification/Message ===
=== NOTIFYACK: Acknowledge Notification/Message ===
'''Command String:'''
'''Command String:'''
* NOTIFYACK type={str type}&id={int4 id}
* NOTIFYACK type={str type}&id={int4 id}
Line 369: Line 380:
: M for message entries
: M for message entries
: N for notification entries
: N for notification entries


== Data Commands ==
== Data Commands ==
546

edits

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.