Edit

Share via


ICallConnector interface

Implemented by connector plugins for the UniversalCallBot.

Methods

onEvent((event: IEvent, cb?: (err: Error) => void) => void)

Called by the UniversalCallBot at creation time to register a handler for receiving incoming call events from the service.

send(IEvent, (err: Error) => void)

Called by the UniversalCallBot to deliver workflow events to the service.

Method Details

onEvent((event: IEvent, cb?: (err: Error) => void) => void)

Called by the UniversalCallBot at creation time to register a handler for receiving incoming call events from the service.

function onEvent(handler: (event: IEvent, cb?: (err: Error) => void) => void)

Parameters

handler

(event: IEvent, cb?: (err: Error) => void) => void

send(IEvent, (err: Error) => void)

Called by the UniversalCallBot to deliver workflow events to the service.

function send(event: IEvent, cb: (err: Error) => void)

Parameters

event
IEvent
cb

(err: Error) => void