Skip to content

Commit

Permalink
Merge pull request #15 from jeskew/docs/fixup-readme-unsubscribe
Browse files Browse the repository at this point in the history
Spell out explicitly what visiting an UnsubscribeMessage SubscribeURL will do
  • Loading branch information
jeskew authored Aug 24, 2017
2 parents 8bbaac2 + 903c392 commit 5e45a38
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ Unsubscribing looks the same as subscribing, except the message type will be

```javascript
if (message['Type'] === 'UnsubscribeConfirmation') {
// Unsubscribed in error? You can resubscribe by visiting the endpoint
// provided as the message's SubscribeURL field.
https.get(message['SubscribeURL'], function (res) {
// You have unsubscribed your endpoint.
// You have re-subscribed your endpoint.
});
}
```
Expand Down

0 comments on commit 5e45a38

Please sign in to comment.