Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. mattheworiordan created this gist Apr 18, 2019.
    3 changes: 3 additions & 0 deletions publish-with-idempotency-for-retries.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    var rest = new Ably.Rest(key: ablyApiKey, idempotentRestPublishing: true);
    var channel = rest.channels.get('example-channel');
    channel.publish([{ data: 'payload' }]);