A webhook for your application
Add easily a webhook to your application both on Node.js and browser as an stream of objects. It can be able to use a remote ServerSent Events server or enable an ad-hoc local web server, both directly or by using a proxy like post2sse or browserver.
npm install --save webhook-post
WebhookPost
is a Node.js stream
Readable
object. It accept as argument the remote SSE server url as a string
, the
local ad-hoc web server port as a Ǹumber
, or an object with the local ad-hoc
web server hostname
and port
.
To stop listening for notifications and emitting them on data
events, just
call the .close()
method.