ICallConnector interface
UniversalCallBot에 대한 커넥터 플러그 인에 의해 구현됩니다.
메서드
| on |
생성 시 UniversalCallBot에서 호출하여 서비스에서 들어오는 호출 이벤트를 수신하기 위한 처리기를 등록합니다. |
| send(IEvent, (err: Error) => void) | 유니버설콜봇이 워크플로 이벤트를 서비스에 배달하기 위해 호출합니다. |
메서드 세부 정보
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)
유니버설콜봇이 워크플로 이벤트를 서비스에 배달하기 위해 호출합니다.
function send(event: IEvent, cb: (err: Error) => void)
매개 변수
- event
- IEvent
- cb
-
(err: Error) => void