diff --git a/oada/libs/oada-lib-kafka/src/base.ts b/oada/libs/oada-lib-kafka/src/base.ts index a2008163..28448c46 100755 --- a/oada/libs/oada-lib-kafka/src/base.ts +++ b/oada/libs/oada-lib-kafka/src/base.ts @@ -213,6 +213,9 @@ export class Base extends EventEmitter { topic?: string; part: number | null; }) { + // Wait for producer to be ready? + await this.ready + // Assume all messages are JSON const value = JSON.stringify({ time: Date.now(),