Trying to renegotiate in Cloudflare calls API
I'm trying to renegotiate with api
const renegotiateResponse = await fetch(
${API_BASE}/sessions/${remoteSessionId}/renegotiate
,
{
method: "PUT",
headers,
body: JSON.stringify({
sessionDescription: {
sdp: remoteAnswer.sdp,
type: "answer",
},
}),
}
).then((res) => res.json());
But getting {} this kind of response. What could be wrong with my code or backend side. Anyone can help me out in this?0 Replies