Skip to content

Commit

Permalink
Convert StreamClient to be an AsyncIterator itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ptpaterson committed Feb 22, 2024
1 parent 45afff5 commit 5287940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ export class StreamClient {
});
}

async *iter(): AsyncGenerator<StreamEvent> {
async *[Symbol.asyncIterator](): AsyncGenerator<StreamEvent> {
const headers = {
Authorization: `Bearer ${this.#clientConfiguration.secret}`,
};
Expand Down

0 comments on commit 5287940

Please sign in to comment.