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(bodyParser.urlencoded({ extended: false }));


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"**)



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


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


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

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


});**'/jibri'**, (request, response) => {

console.log(**"POST 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", ""]

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:**'/jibri/v1/status'**, (request, response) => {
1 Like