Unsubscribe message format
Unsubscribe requests must be sent as JSON in text frames, one request per frame.
Example of unsubscribe request
_10{_10  "subscription_id": "some-id-1",_10  "action": "unsubscribe"_10}
Example of successful response
_10{_10  "subscription_id": "some-id-1",_10  "action": "unsubscribe"_10}
Example of error response
_10{_10  "error": {_10    "code": 404,_10    "message": "subscription not found"_10  }_10}
Request fields
| Name | Type | Required | Description | 
|---|---|---|---|
| subscription_id | STRING | YES | Unique identifier of the subscription | 
| action | STRING | YES | Action to perform. Must be unsubscribeto initiate a unsubscription |