UNPKG

573 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3class TestConnector {
4 constructor() {
5 this.newConvoCount = 0;
6 }
7 onEvent(handler) {
8 this.onEventHandler = handler;
9 }
10 send(messages, done) {
11 done(null, messages.map((m) => m.address));
12 }
13 startConversation(address, cb) {
14 const adr = Object.assign({}, address);
15 adr.conversation = { id: `Convo${this.newConvoCount++}` };
16 cb(null, adr);
17 }
18}
19exports.TestConnector = TestConnector;
20//# sourceMappingURL=TestConnector.js.map
\No newline at end of file