Skip to content

Instantly share code, notes, and snippets.

@mattheworiordan
Last active April 18, 2019 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattheworiordan/f84678b1ed2125cfe775e78b2fe943a2 to your computer and use it in GitHub Desktop.
Save mattheworiordan/f84678b1ed2125cfe775e78b2fe943a2 to your computer and use it in GitHub Desktop.
Ably Idempotency with client supplied message ID
var rest = new Ably.Rest(ablyApiKey);
var channel = rest.channels.get('example-channel');
channel.publish([{ data: 'payload', id: 'unique123' }]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment