Unsubscribe

Unsubscribe removes values from a subscription. To terminate a subscription, let it go unpolled for more than a minute and let the server handle the termination.

Request example

{

  "message" : "Unsubscribe",
  "name" : "SubscriptionName",
  "uids" :
  [
       [
           "message" : "GetValue",
           "firstUid",
           "secondUid"
       ]
}

Request elements

Request elements Value Description
name (of subscription) text Defines the subscription name. If the client does not already have a subscription by the given name, the system creates one.

Subscriptions are private to each session and only have to be unique in that context.

Uids firstUid, secondUid, etc. One or more unique IDs.

Response example

{

  "message" : "Unsubscribe",
  "name" : "SubscriptionName",
  "uids" :
  [
       [
           "firstUid",
           "secondUid"
       ]
}

Response elements

The system echoes back the request.