Skip to content

Commit

Permalink
doc(./docs/stream/~): updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Hallaert committed Dec 19, 2024
1 parent 60c045c commit af14a44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/stream/Interpersonal.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const consumer = new GroupConsumer({
});

await consumer.initialize();
await consumer.init();

const readable = Readable.from(firstConsumer[Symbol.asyncIterator]());
readable.on("readable", async() => {
Expand Down
1 change: 1 addition & 0 deletions docs/stream/Intrapersonal.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const consumer = new Intrapersonal({
});

await consumer.initialize();
await consumer.init();

const readable = Readable.from(basicStream[Symbol.asyncIterator]());
```
Expand Down
3 changes: 2 additions & 1 deletion docs/stream/Stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ interface ConsumeOptions {
## 📚 Usage

```ts
import { Stream, RedisAdapter } from "@myunisoft/redis";
import { Stream } from "@myunisoft/redis";

const redisStream = new Stream({
streamName: "my-stream-name",
Expand All @@ -75,6 +75,7 @@ const redisStream = new Stream({
});

await redisStream.initialize();
await redisStream.init();
```

## 📜 API
Expand Down

0 comments on commit af14a44

Please sign in to comment.