Skip to content

Instantly share code, notes, and snippets.

@BrianGenisio
Created December 5, 2016 13:13
Show Gist options
  • Save BrianGenisio/322fd0d6db7e8b4840c995052d538fbb to your computer and use it in GitHub Desktop.
Save BrianGenisio/322fd0d6db7e8b4840c995052d538fbb to your computer and use it in GitHub Desktop.
Example of how to consume Webhooks-Bridge messages.
var socket = require("socket.io-client")("http://webhooks-bridge.herokuapp.com");
socket.on("webhook", function(data){
if(data.webhookId !== '91efd220-b516-11e6-b9ee-3fb14d81574f') return;
console.log("Webhook Received: ", data.name, data.query);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment