Created
December 5, 2016 13:13
-
-
Save BrianGenisio/322fd0d6db7e8b4840c995052d538fbb to your computer and use it in GitHub Desktop.
Example of how to consume Webhooks-Bridge messages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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