How Are Jibri Webhooks Supposed To Function?

I am trying to test out the Jibri Webhooks but I am not getting a response. I started by created a small node js on my Jibri instance. Code below:

const express = require(**'express'**);

const cors = require(**'cors'**);

const bodyParser = require(**"body-parser"**);

const app = express();

const port = 80;

**//Here we are configuring express to use body-parser as middle-ware.**

app.use(cors())

app.use(bodyParser.urlencoded({ extended: false }));

app.use(bodyParser.json());

app.use(function(req, res, next) {

res.header(**"Access-Control-Allow-Origin"**, **"*"**)

res.header(**"Access-Control-Allow-Headers"**, **"Origin, X-Requested-With, Content-Type, Accept"**)

next()

});

app.get(**'/'**, (req, res) => {

console.log(**'Helo'**);

res.send(**'Hello World!'**)

});

app.get(**'/jibri'**, (request, response) => {

console.log(**"Get Request"**);

console.log(request);

});

app.post(**'/jibri'**, (request, response) => {

console.log(**"POST Request"**);

console.log(request);

});

app.listen(port, () => {

console.log(**`Example app listening on port ${port}`**)

});

Then in my Jitsi Config I added to subscribers to the webhooks section:

  webhook {
    // A list of subscribers interested in receiving webhook events
    subscribers = ["http://localhost/jibri", "http://127.0.0.1/jibri"]
  }

When I start and stop a live stream or recording, I get nothing. Firewalls are open as I can hit the route by going to my servers address. How are the webhooks supposed to work?

it should be:

app.post(**'/jibri/v1/status'**, (request, response) => {
1 Like