{"_id":"558f85df1311b80d00ba9da5","parentDoc":null,"project":"556742591c38390d00698087","version":{"_id":"5567425a1c38390d0069808a","project":"556742591c38390d00698087","__v":2,"createdAt":"2015-05-28T16:29:14.412Z","releaseDate":"2015-05-28T16:29:14.412Z","categories":["5567425a1c38390d0069808b","57214d354758d90e009e6638"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5567425a1c38390d0069808b","project":"556742591c38390d00698087","__v":16,"pages":["5567425c1c38390d0069808d","558f782c1311b80d00ba9d97","558f7986f795be2d00c1164f","558f8069f795be2d00c11655","558f810bf795be2d00c11657","558f82e11311b80d00ba9da1","558f850df795be2d00c1165b","558f85401311b80d00ba9da3","558f85df1311b80d00ba9da5","558f87726742610d0051c4f5","558f87f26742610d0051c4f7","558f886df795be2d00c1165f","55918fec5631432f002d357e","559191f34e50b50d0019612a","5592c8d89a68220d00f1c404","559efaebdf92223500dc50e7"],"version":"5567425a1c38390d0069808a","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-05-28T16:29:14.942Z","from_sync":false,"order":9999,"slug":"documentation","title":"Documentation"},"__v":3,"user":"5564f227f0f70f0d00a9ab20","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-28T05:27:59.230Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":14,"body":"Remove a subscription to a device's messages. Unsubscribe tries to unsubscribe the connection from every message type. To limit what is unsubscribed from, use the `types` attribute.\n\n### Event: `\"unsubscribe\"`, `params`\n\n* `params`\n  * `uuid` UUID of the device to unsubscribe from.\n  * `types` Array of strings of types to unsubscribe from. Valid types are:\n    * `broadcast` broadcast messages sent by the device and messages the device receives as a result of it being subscribed to some other device's broadcasts.\n    * `received` messages received by the device and messages the device receives as a result of it being subscribed to some other device's received messages.\n    * `sent` messages sent by the device and messages the device receives as a result of it being subscribed to some other device's sent messages.","excerpt":"Cancels device subscription","slug":"unsubscribe","type":"basic","title":"Unsubscribe"}

Unsubscribe

Cancels device subscription

Remove a subscription to a device's messages. Unsubscribe tries to unsubscribe the connection from every message type. To limit what is unsubscribed from, use the `types` attribute. ### Event: `"unsubscribe"`, `params` * `params` * `uuid` UUID of the device to unsubscribe from. * `types` Array of strings of types to unsubscribe from. Valid types are: * `broadcast` broadcast messages sent by the device and messages the device receives as a result of it being subscribed to some other device's broadcasts. * `received` messages received by the device and messages the device receives as a result of it being subscribed to some other device's received messages. * `sent` messages sent by the device and messages the device receives as a result of it being subscribed to some other device's sent messages.