Skip to content

Instantly share code, notes, and snippets.

@ajb413
Last active March 22, 2018 23:38
Show Gist options
  • Save ajb413/17e4d951069aa5605b8dd4f73fd6292d to your computer and use it in GitHub Desktop.
Save ajb413/17e4d951069aa5605b8dd4f73fd6292d to your computer and use it in GitHub Desktop.
aws blog snippet
// Be sure to replace strings with your own App's Publish & Subscribe keys
// Also replace the REST endpoint with your own On Request handler
var userPubKey = '__PUBNUB_PUBLISH_KEY__';
var userSubKey = '__PUBNUB_SUBSCRIBE_KEY__';
var pollyFunctionURI = 'https://pubsub.pubnub.com/v1/blocks/sub-key/__SUB_KEY__/__URI__';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment