Skip to content

Instantly share code, notes, and snippets.

@pblca
Last active May 10, 2016 03:50
Show Gist options
  • Save pblca/349a7fcf7adeeac777db to your computer and use it in GitHub Desktop.
Save pblca/349a7fcf7adeeac777db to your computer and use it in GitHub Desktop.
pubnub.audit({
channel: 'Your_Channel_Name',
callback: function(m){
console.log(m);
}
});
pubnub.grant({
channel: 'Your_Channel_Name',
auth_key: 'Your_Auth_Key',
read: true,
write: true,
ttl: 5,
callback: function(m){
console.log(m);
}
});
pubnub.revoke({
channel: 'Your_Channel_Name',
auth_key: 'Your_Auth_Key',
callback: function(m){
console.log(m);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment