Skip to content

Commit 58b0dc6

Browse files
Fix JS example to add API tokens to all outgoing pubs
1 parent a70af0e commit 58b0dc6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

docs/push.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Next, we need to tell our Client to add our GroupMe API token to any subsequent
3737
// adds your API credentials to any 'subscribe' request sent to GroupMe.
3838
client.addExtension({
3939
  outgoing: (msg, callback) => {
40-
    if (msg.channel !== '/meta/subscribe') return callback(msg);
4140
    msg.ext = msg.ext || {};
4241
    msg.ext.access_token = "<YOUR GROUPME API ACCESS TOKEN>";
4342
    msg.ext.timestamp = Math.round(Date.now() / 1000);

0 commit comments

Comments
 (0)