Skip to content

Commit 8b760ea

Browse files
committed
input node now responds to webhooks
1 parent c3ea307 commit 8b760ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webhookrelay.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ module.exports = function (RED) {
8787
}
8888

8989
this.on('input', function (msg) {
90-
// Nothing to do
90+
node.log(`responding to webhook event: '${msg.meta.id}', status: '${msg.status}'`)
91+
var client = new ws.WebhookRelayClient(node.key, node.secret);
92+
client.respond(msg)
9193
});
9294

9395
this.on("close", function () {

0 commit comments

Comments
 (0)