Unsubscribe from a Stream Layer

You should unsubscribe from a stream layer when you are no longer consuming data from a subscription. This means that your app's shutdown sequence should unsubscribe using the API described below. This cleans up resources and is considered a best practice.

To unsubscribe from a stream layer, use the stream API. In the request, the values for nodeBaseURL and subscriptionId are the ones returned in the response of the subscription request describe in Get Data from a Stream Layer.

DELETE /layers/<Layer ID>/subscribe?subscriptionId=<subscriptionId> HTTP/1.1
Host: <nodeBaseURL>
Authorization: Bearer <Authorization Token>
Accept: application/json
Cache-Control: no-cache

results matching ""

    No results matching ""