Jitsi Meet make rest client from prosody plugin - mod_speakerstats_component.lua

Hello Jitsi Team,

I want to call my own webservice while the room destroyed the event call. So I tried the below code in function room_destroyed(event). But it is not working

local respbody = {}
local HTTP = require "socket.http";
 http.request {
method = "methodname",
url = "url",
source = ltn12.source.string(reqbody),
sink = ltn12.sink.table(respbody)
module:log("info","API call successfully",respbody);