ICallConnector interface
由 UniversalCallBot 的连接器插件实现。
方法
| on |
在创建时由 UniversalCallBot 调用,以注册用于从服务接收传入调用事件的处理程序。 |
| send(IEvent, (err: Error) => void) | 由 UniversalCallBot 调用,以便将工作流事件传送到服务。 |
方法详细信息
onEvent((event: IEvent, cb?: (err: Error) => void) => void)
在创建时由 UniversalCallBot 调用,以注册用于从服务接收传入调用事件的处理程序。
function onEvent(handler: (event: IEvent, cb?: (err: Error) => void) => void)
参数
- handler
-
(event: IEvent, cb?: (err: Error) => void) => void
send(IEvent, (err: Error) => void)
由 UniversalCallBot 调用,以便将工作流事件传送到服务。
function send(event: IEvent, cb: (err: Error) => void)
参数
- event
- IEvent
- cb
-
(err: Error) => void