OperatorInstance

Implements IOperatorInstance

Operator instance implementation

constructor(clientId: string, agentName: string, callbacks: Partial<IOperatorInstanceCallbacks>);
clientId: string
agentName: string
callbacks: Partial<IOperatorInstanceCallbacks>
_answerSubject: any
connectAnswer(next: (answer: string) => void): void;

Connects an answer subscription

notify(content: string): Promise<void>;

Sends a notification

answer(content: string): Promise<void>;

Sends an answer

recieveMessage(message: string): Promise<void>;

Receives a message

dispose(): Promise<void>;

Disposes the operator instance