From 5287940d46b3019121cd2f62771f9266c91bcd8a Mon Sep 17 00:00:00 2001 From: Paul Paterson Date: Thu, 22 Feb 2024 11:17:12 -0500 Subject: [PATCH] Convert StreamClient to be an AsyncIterator itself --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 9c1f141e..0964d3d6 100644 --- a/src/client.ts +++ b/src/client.ts @@ -678,7 +678,7 @@ export class StreamClient { }); } - async *iter(): AsyncGenerator { + async *[Symbol.asyncIterator](): AsyncGenerator { const headers = { Authorization: `Bearer ${this.#clientConfiguration.secret}`, };