Unsubscribe from Listeners

The unsubscribeEvents function allows you to unsubscribe from webhooks you created using the various providers. When creating a listener, you will be returned an ID for that listener. Using this ID, you can stop incoming webhooks hitting your application from that listener.

Method Signature

unsubscribeEvents(id: string)

Unsubscribing from Listeners

const voiceListenerId = await voice.onCall('onCall');

await vcr.unsubscribeEvents(voiceListenerId);