/** * Commits the offsets specified by the message * * @param message - Message from which to get the offset */ public async commit(message: IResponse): Promise<void> { this.checkReadiness() await this.consumer.commitOffsets([ { offset: (parseInt(message.offset, 10) + 1).toString(), topic: message.topic, partition: message.partition } ]) }