This class is an abstraction of a consumer acting out of a group, handling intrapersonal communication (with himself) through a redis stream.
import { Intrapersonal } from "@myunisoft/redis";
const consumer = new Intrapersonal({
connection,
streamName: "my-stream-name",
frequency: 10000,
lastId: "0-0",
count: 10
});
await consumer.initialize();
await consumer.init();
const readable = Readable.from(basicStream[Symbol.asyncIterator]());
Use this method to pull data out of the connected stream.
Use this method to pull out all data of the connected stream.