docs: fix client.event.subscribe example (#2280)

pull/2282/head
Aiden Cline 2025-08-27 11:42:09 -05:00 committed by GitHub
parent 0fbd7c84fd
commit 8381760b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@ await client.auth.set({
```javascript
// Listen to real-time events
const eventStream = await client.event.subscribe()
for await (const event of eventStream) {
const events = await client.event.subscribe()
for await (const event of events.stream) {
console.log("Event:", event.type, event.properties)
}
```