Darse de baja de «Listeners»
El unsubscribeEvents Esta función te permite darte de baja de los webhooks que hayas creado mediante los distintos proveedores. Al crear un oyente, se te asignará un ID para dicho oyente. Con este ID, puedes impedir que los webhooks entrantes procedentes de ese oyente lleguen a tu aplicación.
Firma del método
unsubscribeEvents(id: string)
Baja de oyentes
const voiceListenerId = await voice.onCall('onCall');
await vcr.unsubscribeEvents(voiceListenerId);
voiceListenerId = await voice.onCall('onCall')
await vcr.unsubscribeEvents(voiceListenerId)